configure ci #1
Annotations
10 warnings
cargo clippy:
crates/swegov-opendata/src/lib.rs#L1
warning: constants have by default a `'static` lifetime
--> crates/swegov-opendata/src/date_formats.rs:1:16
|
1 | const FORMAT: &'static str = "%Y-%m-%d %H:%M:%S";
| -^^^^^^^---- help: consider removing `'static`: `&str`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_static_lifetimes
= note: `#[warn(clippy::redundant_static_lifetimes)]` on by default
|
cargo clippy:
crates/swegov-opendata/src/lib.rs#L281
warning: this `impl` can be derived
--> crates/swegov-opendata/src/lib.rs:281:1
|
281 | / impl Default for FilBilaga {
282 | | fn default() -> Self {
283 | | Self { fil: None }
284 | | }
285 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
= note: `#[warn(clippy::derivable_impls)]` on by default
= help: remove the manual implementation...
help: ...and instead derive it
|
276 + #[derive(Default)]
277 | pub struct FilBilaga {
|
|
cargo clippy
warning: 2 warnings emitted
|
cargo clippy:
crates/sparv-extension/src/lib.rs#L70
warning: the borrowed expression implements the required traits
--> crates/sparv-extension/src/sparv_config.rs:70:24
|
70 | fs::create_dir_all(&path).change_context(SparvConfigError)?;
| ^^^^^ help: change this to: `path`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrows_for_generic_args
= note: `#[warn(clippy::needless_borrows_for_generic_args)]` on by default
|
cargo clippy:
crates/sparv-extension/src/lib.rs#L69
warning: called `map(..).flatten()` on `Option`
--> crates/sparv-extension/src/xml_source_writer.rs:69:14
|
69 | .map(|s| s.to_str())
| ______________^
70 | | .flatten()
| |______________________^ help: try replacing `map` with `and_then` and remove the `.flatten()`: `and_then(|s| s.to_str())`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_flatten
= note: `#[warn(clippy::map_flatten)]` on by default
|
cargo clippy
warning: 2 warnings emitted
|
cargo clippy:
crates/swegov-opendata-preprocess/src/lib.rs#L1
warning: unused import: `std::borrow::Cow`
--> crates/swegov-opendata-preprocess/src/preprocess_sfs/sfs_json/sfs_div_dok.rs:1:5
|
1 | use std::borrow::Cow;
| ^^^^^^^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
|
cargo clippy:
crates/swegov-opendata-preprocess/src/lib.rs#L2
warning: unused import: `ElementBuilder`
--> crates/swegov-opendata-preprocess/src/shared.rs:2:24
|
2 | use minidom::{Element, ElementBuilder, Node};
| ^^^^^^^^^^^^^^
|
cargo clippy:
crates/swegov-opendata-preprocess/src/lib.rs#L61
warning: a method with this name may be added to the standard library in the future
--> crates/swegov-opendata-preprocess/src/shared.rs:61:10
|
61 | .intersperse(" ")
| ^^^^^^^^^^^
|
= warning: once this associated item is added to the standard library, the ambiguity may cause an error or change in behavior!
= note: for more information, see issue #48919 <https://github.com/rust-lang/rust/issues/48919>
= help: call with fully qualified syntax `itertools::Itertools::intersperse(...)` to keep using the current method
= note: `#[warn(unstable_name_collisions)]` on by default
|
cargo clippy:
crates/swegov-opendata-preprocess/src/lib.rs#L211
warning: unused variable: `attrs`
--> crates/swegov-opendata-preprocess/src/preprocess_rd/html.rs:211:21
|
211 | attrs,
| ^^^^^ help: try ignoring the field: `attrs: _`
|
= note: `#[warn(unused_variables)]` on by default
|
Loading