forked from loafle/openapi-generator-original
* fix(rust-server): Use ok_or_else instead of ok_or * fix(rust-server): Remove empty format string * fix(rust-server): Remove redundant field names in struct initialisation * fix(rust-server): Remove redundant clones * fix(rust-server): Derive Eq with PartialEq always * fix(rust-server): Remove immediately pushes replaced by vec macro * fix(rust-server): Remove useless conversions * fix(rust-server): Dismiss clippy::new_without_default * fix(rust-server): Fix compilation failures * fix(rust-server): Resolve remaining warnings * build(rust-server): Add newly generated samples of petstore * fix(rust-server): Allow clippy::derive_partial_eq_without_eq to avoid float types try to derive Eq * fix(rust-server): Fix parts to compile samples successfully * fix(rust-server): Allow clippy::redundant_clone instead of removing redundant map_err * fix(rust-server): Resolve and dismiss lots of warnings to satisfy clippy on samples * build(rust-server): Add clippy execution to sample integration test * build(rust-server): Add .cargo/config to the test root to use -Dwarnings flag in tests * fix(rust-server): Allow unused_mut to avoid compilation fails in some environments
19 lines
616 B
Plaintext
19 lines
616 B
Plaintext
[build]
|
|
rustflags = [
|
|
"-W", "missing_docs", # detects missing documentation for public members
|
|
|
|
"-W", "trivial_casts", # detects trivial casts which could be removed
|
|
|
|
"-W", "trivial_numeric_casts", # detects trivial casts of numeric types which could be removed
|
|
|
|
"-W", "unsafe_code", # usage of `unsafe` code
|
|
|
|
"-W", "unused_qualifications", # detects unnecessarily qualified names
|
|
|
|
"-W", "unused_extern_crates", # extern crates that are never used
|
|
|
|
"-W", "unused_import_braces", # unnecessary braces around an imported item
|
|
|
|
"-D", "warnings", # all warnings should be denied
|
|
]
|