Base whether the result of the capabilities call is a bundle on the c… #1339
Annotations
2 errors and 10 warnings
src/hg_connect_http.rs#L867
error: unnested or-patterns
--> src/hg_connect_http.rs:867:9
|
867 | Some("application/mercurial-0.1") | Some("application/mercurial-0.2") => {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnested_or_patterns
note: the lint level is defined here
--> src/main.rs:38:9
|
38 | #![deny(clippy::unnested_or_patterns)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
help: nest the patterns
|
867 | Some("application/mercurial-0.1" | "application/mercurial-0.2") => {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/typenum-1.17.0/src/lib.rs#L104
warning: unused import: `*`
--> /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/typenum-1.17.0/src/lib.rs:104:25
|
104 | N1, N2, Z0, P1, P2, *,
| ^
|
= note: `#[warn(unused_imports)]` on by default
|
Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/syn-1.0.109/src/attr.rs#L470
warning: method `inner` is never used
--> /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/syn-1.0.109/src/attr.rs:470:8
|
466 | pub trait FilterAttrs<'a> {
| ----------- method in this trait
...
470 | fn inner(self) -> Self::Ret;
| ^^^^^
|
= note: `#[warn(dead_code)]` on by default
|
Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/syn-1.0.109/src/expr.rs#L1110
warning: field `0` is never read
--> /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/syn-1.0.109/src/expr.rs:1110:28
|
1110 | pub struct AllowStruct(bool);
| ----------- ^^^^
| |
| field in this struct
|
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
|
1110 | pub struct AllowStruct(());
| ~~
|
Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/colorchoice-1.0.1/src/lib.rs#L54
warning: unnecessary qualification
--> /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/colorchoice-1.0.1/src/lib.rs:54:13
|
54 | crate::ColorChoice::Auto,
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: requested on the command line with `-W unused-qualifications`
help: remove the unnecessary path segments
|
54 - crate::ColorChoice::Auto,
54 + ColorChoice::Auto,
|
|
Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/colorchoice-1.0.1/src/lib.rs#L70
warning: unnecessary qualification
--> /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/colorchoice-1.0.1/src/lib.rs:70:13
|
70 | crate::ColorChoice::Auto => 0,
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
help: remove the unnecessary path segments
|
70 - crate::ColorChoice::Auto => 0,
70 + ColorChoice::Auto => 0,
|
|
Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/colorchoice-1.0.1/src/lib.rs#L71
warning: unnecessary qualification
--> /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/colorchoice-1.0.1/src/lib.rs:71:13
|
71 | crate::ColorChoice::AlwaysAnsi => 1,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: remove the unnecessary path segments
|
71 - crate::ColorChoice::AlwaysAnsi => 1,
71 + ColorChoice::AlwaysAnsi => 1,
|
|
Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/colorchoice-1.0.1/src/lib.rs#L72
warning: unnecessary qualification
--> /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/colorchoice-1.0.1/src/lib.rs:72:13
|
72 | crate::ColorChoice::Always => 2,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: remove the unnecessary path segments
|
72 - crate::ColorChoice::Always => 2,
72 + ColorChoice::Always => 2,
|
|
Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/colorchoice-1.0.1/src/lib.rs#L73
warning: unnecessary qualification
--> /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/colorchoice-1.0.1/src/lib.rs:73:13
|
73 | crate::ColorChoice::Never => 3,
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: remove the unnecessary path segments
|
73 - crate::ColorChoice::Never => 3,
73 + ColorChoice::Never => 3,
|
|
Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/colorchoice-1.0.1/src/lib.rs#L79
warning: unnecessary qualification
--> /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/colorchoice-1.0.1/src/lib.rs:79:23
|
79 | 0 => Some(crate::ColorChoice::Auto),
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
help: remove the unnecessary path segments
|
79 - 0 => Some(crate::ColorChoice::Auto),
79 + 0 => Some(ColorChoice::Auto),
|
|
Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/colorchoice-1.0.1/src/lib.rs#L80
warning: unnecessary qualification
--> /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/colorchoice-1.0.1/src/lib.rs:80:23
|
80 | 1 => Some(crate::ColorChoice::AlwaysAnsi),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
help: remove the unnecessary path segments
|
80 - 1 => Some(crate::ColorChoice::AlwaysAnsi),
80 + 1 => Some(ColorChoice::AlwaysAnsi),
|
|
This job failed
Loading