warning: non-binding `let` without a type annotation
--> src/lib.rs:227:13
|
227 | let _ = Write::write_fmt(self, args);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
note: the lint level is defined here
--> src/lib.rs:10:9
|
10 | #![warn(clippy::pedantic)]
| ^^^^^^^^^^^^^^^^
= note: `#[warn(clippy::let_underscore_untyped)]` implied by `#[warn(clippy::pedantic)]`
warning: non-binding `let` without a type annotation
--> src/emitter.rs:92:9
|
92 | let _ = PUT_BREAK(emitter);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/loader.rs:479:5
|
479 | let _ = POP!(*ctx);
| ^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/loader.rs:577:5
|
577 | let _ = POP!(*ctx);
| ^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/parser.rs:756:9
|
756 | let _ = POP!((*parser).marks);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/parser.rs:854:9
|
854 | let _ = POP!((*parser).marks);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/parser.rs:967:5
|
967 | let _ = POP!((*parser).marks);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/parser.rs:1109:5
|
1109 | let _ = POP!((*parser).marks);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/scanner.rs:425:9
|
425 | let _ = POP!((*parser).simple_keys);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:71:17
|
71 | / let _ = write!(
72 | | error,
73 | | "\nLine: {} Column: {}",
74 | | ((*parser).problem_mark.line).wrapping_add(1_u64),
75 | | ((*parser).problem_mark.column).wrapping_add(1_u64),
76 | | );
| |__________________^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
note: the lint level is defined here
--> src/bin/run-parser-test-suite.rs:1:9
|
1 | #![warn(clippy::pedantic)]
| ^^^^^^^^^^^^^^^^
= note: `#[warn(clippy::let_underscore_untyped)]` implied by `#[warn(clippy::pedantic)]`
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:84:13
|
84 | let _ = writeln!(stdout, "???");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:86:13
|
86 | let _ = writeln!(stdout, "+STR");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:88:13
|
88 | let _ = writeln!(stdout, "-STR");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:90:13
|
90 | let _ = write!(stdout, "+DOC");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:92:17
|
92 | let _ = write!(stdout, " ---");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:94:13
|
94 | let _ = writeln!(stdout);
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:96:13
|
96 | let _ = write!(stdout, "-DOC");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:98:17
|
98 | let _ = write!(stdout, " ...");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs💯13
|
100 | let _ = writeln!(stdout);
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:102:13
|
102 | let _ = write!(stdout, "+MAP");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:104:17
|
104 | / let _ = write!(
105 | | stdout,
106 | | " &{}",
107 | | CStr::from_ptr((*event).data.mapping_start.anchor as *const i8),
108 | | );
| |__________________^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:111:17
|
111 | / let _ = write!(
112 | | stdout,
113 | | " <{}>",
114 | | CStr::from_ptr((*event).data.mapping_start.tag as *const i8),
115 | | );
| |__________________^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:117:13
|
117 | let _ = writeln!(stdout);
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:119:13
|
119 | let _ = writeln!(stdout, "-MAP");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:121:13
|
121 | let _ = write!(stdout, "+SEQ");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:123:17
|
123 | / let _ = write!(
124 | | stdout,
125 | | " &{}",
126 | | CStr::from_ptr((*event).data.sequence_start.anchor as *const i8),
127 | | );
| |__________________^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:130:17
|
130 | / let _ = write!(
131 | | stdout,
132 | | " <{}>",
133 | | CStr::from_ptr((*event).data.sequence_start.tag as *const i8),
134 | | );
| |__________________^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:136:13
|
136 | let _ = writeln!(stdout);
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:138:13
|
138 | let _ = writeln!(stdout, "-SEQ");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:140:13
|
140 | let _ = write!(stdout, "=VAL");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:142:17
|
142 | / let _ = write!(
143 | | stdout,
144 | | " &{}",
145 | | CStr::from_ptr((*event).data.scalar.anchor as *const i8),
146 | | );
| |__________________^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:149:17
|
149 | / let _ = write!(
150 | | stdout,
151 | | " <{}>",
152 | | CStr::from_ptr((*event).data.scalar.tag as *const i8),
153 | | );
| |__________________^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:155:13
|
155 | / let _ = stdout.write_all(match (*event).data.scalar.style {
156 | | YAML_PLAIN_SCALAR_STYLE => b" :",
157 | | YAML_SINGLE_QUOTED_SCALAR_STYLE => b" '",
158 | | YAML_DOUBLE_QUOTED_SCALAR_STYLE => b" \"",
... |
161 | | _ => process::abort(),
162 | | });
| |_______________^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:168:13
|
168 | let _ = writeln!(stdout);
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:170:13
|
170 | / let _ = writeln!(
171 | | stdout,
172 | | "=ALI *{}",
173 | | CStr::from_ptr((*event).data.alias.anchor as *const i8),
174 | | );
| |______________^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:200:9
|
200 | let _ = stdout.write_all(repr);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:208:9
|
208 | let _ = writeln!(io::stderr(), "Usage: run-parser-test-suite <in.yaml>...");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:216:13
|
216 | let _ = writeln!(io::stderr(), "{}", err);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:71:17
|
71 | / let _ = write!(
72 | | error,
73 | | "\nLine: {} Column: {}",
74 | | ((*parser).problem_mark.line).wrapping_add(1_u64),
75 | | ((*parser).problem_mark.column).wrapping_add(1_u64),
76 | | );
| |__________________^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
note: the lint level is defined here
--> src/bin/run-parser-test-suite.rs:1:9
|
1 | #![warn(clippy::pedantic)]
| ^^^^^^^^^^^^^^^^
= note: `#[warn(clippy::let_underscore_untyped)]` implied by `#[warn(clippy::pedantic)]`
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:84:13
|
84 | let _ = writeln!(stdout, "???");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:86:13
|
86 | let _ = writeln!(stdout, "+STR");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:88:13
|
88 | let _ = writeln!(stdout, "-STR");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:90:13
|
90 | let _ = write!(stdout, "+DOC");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:92:17
|
92 | let _ = write!(stdout, " ---");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:94:13
|
94 | let _ = writeln!(stdout);
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:96:13
|
96 | let _ = write!(stdout, "-DOC");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:98:17
|
98 | let _ = write!(stdout, " ...");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs💯13
|
100 | let _ = writeln!(stdout);
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:102:13
|
102 | let _ = write!(stdout, "+MAP");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:104:17
|
104 | / let _ = write!(
105 | | stdout,
106 | | " &{}",
107 | | CStr::from_ptr((*event).data.mapping_start.anchor as *const i8),
108 | | );
| |__________________^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:111:17
|
111 | / let _ = write!(
112 | | stdout,
113 | | " <{}>",
114 | | CStr::from_ptr((*event).data.mapping_start.tag as *const i8),
115 | | );
| |__________________^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:117:13
|
117 | let _ = writeln!(stdout);
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:119:13
|
119 | let _ = writeln!(stdout, "-MAP");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:121:13
|
121 | let _ = write!(stdout, "+SEQ");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:123:17
|
123 | / let _ = write!(
124 | | stdout,
125 | | " &{}",
126 | | CStr::from_ptr((*event).data.sequence_start.anchor as *const i8),
127 | | );
| |__________________^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:130:17
|
130 | / let _ = write!(
131 | | stdout,
132 | | " <{}>",
133 | | CStr::from_ptr((*event).data.sequence_start.tag as *const i8),
134 | | );
| |__________________^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:136:13
|
136 | let _ = writeln!(stdout);
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:138:13
|
138 | let _ = writeln!(stdout, "-SEQ");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:140:13
|
140 | let _ = write!(stdout, "=VAL");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:142:17
|
142 | / let _ = write!(
143 | | stdout,
144 | | " &{}",
145 | | CStr::from_ptr((*event).data.scalar.anchor as *const i8),
146 | | );
| |__________________^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:149:17
|
149 | / let _ = write!(
150 | | stdout,
151 | | " <{}>",
152 | | CStr::from_ptr((*event).data.scalar.tag as *const i8),
153 | | );
| |__________________^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:155:13
|
155 | / let _ = stdout.write_all(match (*event).data.scalar.style {
156 | | YAML_PLAIN_SCALAR_STYLE => b" :",
157 | | YAML_SINGLE_QUOTED_SCALAR_STYLE => b" '",
158 | | YAML_DOUBLE_QUOTED_SCALAR_STYLE => b" \"",
... |
161 | | _ => process::abort(),
162 | | });
| |_______________^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:168:13
|
168 | let _ = writeln!(stdout);
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:170:13
|
170 | / let _ = writeln!(
171 | | stdout,
172 | | "=ALI *{}",
173 | | CStr::from_ptr((*event).data.alias.anchor as *const i8),
174 | | );
| |______________^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:200:9
|
200 | let _ = stdout.write_all(repr);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-emitter-test-suite.rs:186:21
|
186 | / let _ = writeln!(
187 | | io::stderr(),
188 | | "Line too long: '{}'",
189 | | String::from_utf8_lossy(&self.buf),
190 | | );
| |______________________^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
note: the lint level is defined here
--> src/bin/run-emitter-test-suite.rs:1:9
|
1 | #![warn(clippy::pedantic)]
| ^^^^^^^^^^^^^^^^
= note: `#[warn(clippy::let_underscore_untyped)]` implied by `#[warn(clippy::pedantic)]`
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:208:9
|
208 | let _ = writeln!(io::stderr(), "Usage: run-parser-test-suite <in.yaml>...");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-parser-test-suite.rs:216:13
|
216 | let _ = writeln!(io::stderr(), "{}", err);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-emitter-test-suite.rs:290:9
|
290 | / let _ = writeln!(
291 | | io::stderr(),
292 | | "Usage: run-emitter-test-suite <test.event>...",
293 | | );
| |__________^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-emitter-test-suite.rs:301:13
|
301 | let _ = writeln!(io::stderr(), "{}", err);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-emitter-test-suite.rs:186:21
|
186 | / let _ = writeln!(
187 | | io::stderr(),
188 | | "Line too long: '{}'",
189 | | String::from_utf8_lossy(&self.buf),
190 | | );
| |______________________^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
note: the lint level is defined here
--> src/bin/run-emitter-test-suite.rs:1:9
|
1 | #![warn(clippy::pedantic)]
| ^^^^^^^^^^^^^^^^
= note: `#[warn(clippy::let_underscore_untyped)]` implied by `#[warn(clippy::pedantic)]`
warning: non-binding `let` without a type annotation
--> src/bin/run-emitter-test-suite.rs:290:9
|
290 | / let _ = writeln!(
291 | | io::stderr(),
292 | | "Usage: run-emitter-test-suite <test.event>...",
293 | | );
| |__________^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
warning: non-binding `let` without a type annotation
--> src/bin/run-emitter-test-suite.rs:301:13
|
301 | let _ = writeln!(io::stderr(), "{}", err);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: consider adding a type annotation or removing the `let` keyword
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_untyped
I'd like a chance to audit all the code that rustdoc is inserting into
the docs. Currently I am skeptical that showing unsafe-libyaml's
internal usages of APIs is a net benefit to the public documentation. I
am also skeptical that quite so many examples are needed, and that they
should be featured so prominently in comparison to handwritten docs.
Lastly I wish there were a way to turn this behavior off on a more
granular basis.
GitHub's default timeout is 6 hours. Recently some of my GitHub Actions
jobs have started randomly stalling for that long, which is inconvenient
because it ties up a chunk of my runner quota. It apepars to be very
rare for a job to recover after stalling. It's better to time out
quicker and retry on a different runner.
warning: lint `clippy::let_underscore_drop` has been renamed to `let_underscore_drop`
--> src/lib.rs:23:5
|
23 | clippy::let_underscore_drop,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `let_underscore_drop`
|
= note: `#[warn(renamed_and_removed_lints)]` on by default
warning: lint `clippy::let_underscore_drop` has been renamed to `let_underscore_drop`
--> src/bin/run-emitter-test-suite.rs:8:5
|
8 | clippy::let_underscore_drop,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `let_underscore_drop`
|
= note: `#[warn(renamed_and_removed_lints)]` on by default
warning: lint `clippy::let_underscore_drop` has been renamed to `let_underscore_drop`
--> src/bin/run-parser-test-suite.rs:8:5
|
8 | clippy::let_underscore_drop,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use the new name: `let_underscore_drop`
|
= note: `#[warn(renamed_and_removed_lints)]` on by default
error: the borrowed expression implements the required traits
--> tests/data/lib.rs:36:31
|
36 | for entry in fs::read_dir(&yaml_test_suite).unwrap() {
| ^^^^^^^^^^^^^^^^ help: change this to: `yaml_test_suite`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `-D clippy::needless-borrow` implied by `-D clippy::all`
error: the borrowed expression implements the required traits
--> tests/data/build.rs:23:43
|
23 | let response = reqwest::blocking::get(&url)?.error_for_status()?;
| ^^^^ help: change this to: `url`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `-D clippy::needless-borrow` implied by `-D clippy::all`
error: variables can be used directly in the `format!` string
--> tests/data/build.rs:24:18
|
24 | let prefix = format!("yaml-test-suite-{}", TAG);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
= note: `-D clippy::uninlined-format-args` implied by `-D clippy::pedantic`
help: change this to
|
24 - let prefix = format!("yaml-test-suite-{}", TAG);
24 + let prefix = format!("yaml-test-suite-{TAG}");
|
error: casting to the same type is unnecessary (`u64` -> `u64`)
--> src/api.rs:377:17
|
377 | *fresh153 = (*fresh153 as libc::c_ulong).wrapping_add(size) as size_t as size_t;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(*fresh153 as libc::c_ulong).wrapping_add(size) as size_t`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
= note: `-D clippy::unnecessary-cast` implied by `-D clippy::all`
error: casting to the same type is unnecessary (`u64` -> `u64`)
--> src/api.rs:377:17
|
377 | *fresh153 = (*fresh153 as libc::c_ulong).wrapping_add(size) as size_t as size_t;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(*fresh153 as libc::c_ulong).wrapping_add(size)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting to the same type is unnecessary (`u64` -> `u64`)
--> src/api.rs:377:17
|
377 | *fresh153 = (*fresh153 as libc::c_ulong).wrapping_add(size) as size_t as size_t;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `*fresh153`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting to the same type is unnecessary (`u64` -> `u64`)
--> src/emitter.rs:1062:22
|
1062 | length = (length as libc::c_ulong).wrapping_add((*emitter).anchor_data.anchor_length)
| ______________________^
1063 | | as size_t as size_t;
| |___________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
help: try
|
1062 ~ length = (length as libc::c_ulong).wrapping_add((*emitter).anchor_data.anchor_length)
1063 ~ as size_t;
|
error: casting to the same type is unnecessary (`u64` -> `u64`)
--> src/emitter.rs:1062:22
|
1062 | length = (length as libc::c_ulong).wrapping_add((*emitter).anchor_data.anchor_length)
| ______________________^
1063 | | as size_t as size_t;
| |_________________________^ help: try: `(length as libc::c_ulong).wrapping_add((*emitter).anchor_data.anchor_length)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting to the same type is unnecessary (`u64` -> `u64`)
--> src/emitter.rs:1062:22
|
1062 | length = (length as libc::c_ulong).wrapping_add((*emitter).anchor_data.anchor_length)
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `length`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting to the same type is unnecessary (`u64` -> `u64`)
--> src/emitter.rs:1069:22
|
1069 | length = (length as libc::c_ulong).wrapping_add(
| ______________________^
1070 | | (*emitter)
1071 | | .anchor_data
1072 | | .anchor_length
... |
1075 | | .wrapping_add((*emitter).scalar_data.length),
1076 | | ) as size_t as size_t;
| |_________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
help: try
|
1069 ~ length = (length as libc::c_ulong).wrapping_add(
1070 + (*emitter)
1071 + .anchor_data
1072 + .anchor_length
1073 + .wrapping_add((*emitter).tag_data.handle_length)
1074 + .wrapping_add((*emitter).tag_data.suffix_length)
1075 + .wrapping_add((*emitter).scalar_data.length),
1076 ~ ) as size_t;
|
error: casting to the same type is unnecessary (`u64` -> `u64`)
--> src/emitter.rs:1069:22
|
1069 | length = (length as libc::c_ulong).wrapping_add(
| ______________________^
1070 | | (*emitter)
1071 | | .anchor_data
1072 | | .anchor_length
... |
1075 | | .wrapping_add((*emitter).scalar_data.length),
1076 | | ) as size_t as size_t;
| |_______________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
help: try
|
1069 ~ length = (length as libc::c_ulong).wrapping_add(
1070 + (*emitter)
1071 + .anchor_data
1072 + .anchor_length
1073 + .wrapping_add((*emitter).tag_data.handle_length)
1074 + .wrapping_add((*emitter).tag_data.suffix_length)
1075 + .wrapping_add((*emitter).scalar_data.length),
1076 ~ ) as size_t;
|
error: casting to the same type is unnecessary (`u64` -> `u64`)
--> src/emitter.rs:1069:22
|
1069 | length = (length as libc::c_ulong).wrapping_add(
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `length`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting to the same type is unnecessary (`u64` -> `u64`)
--> src/emitter.rs:1082:22
|
1082 | length = (length as libc::c_ulong).wrapping_add(
| ______________________^
1083 | | (*emitter)
1084 | | .anchor_data
1085 | | .anchor_length
1086 | | .wrapping_add((*emitter).tag_data.handle_length)
1087 | | .wrapping_add((*emitter).tag_data.suffix_length),
1088 | | ) as size_t as size_t;
| |_________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
help: try
|
1082 ~ length = (length as libc::c_ulong).wrapping_add(
1083 + (*emitter)
1084 + .anchor_data
1085 + .anchor_length
1086 + .wrapping_add((*emitter).tag_data.handle_length)
1087 + .wrapping_add((*emitter).tag_data.suffix_length),
1088 ~ ) as size_t;
|
error: casting to the same type is unnecessary (`u64` -> `u64`)
--> src/emitter.rs:1082:22
|
1082 | length = (length as libc::c_ulong).wrapping_add(
| ______________________^
1083 | | (*emitter)
1084 | | .anchor_data
1085 | | .anchor_length
1086 | | .wrapping_add((*emitter).tag_data.handle_length)
1087 | | .wrapping_add((*emitter).tag_data.suffix_length),
1088 | | ) as size_t as size_t;
| |_______________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
help: try
|
1082 ~ length = (length as libc::c_ulong).wrapping_add(
1083 + (*emitter)
1084 + .anchor_data
1085 + .anchor_length
1086 + .wrapping_add((*emitter).tag_data.handle_length)
1087 + .wrapping_add((*emitter).tag_data.suffix_length),
1088 ~ ) as size_t;
|
error: casting to the same type is unnecessary (`u64` -> `u64`)
--> src/emitter.rs:1082:22
|
1082 | length = (length as libc::c_ulong).wrapping_add(
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `length`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting to the same type is unnecessary (`u64` -> `u64`)
--> src/emitter.rs:1094:22
|
1094 | length = (length as libc::c_ulong).wrapping_add(
| ______________________^
1095 | | (*emitter)
1096 | | .anchor_data
1097 | | .anchor_length
1098 | | .wrapping_add((*emitter).tag_data.handle_length)
1099 | | .wrapping_add((*emitter).tag_data.suffix_length),
1100 | | ) as size_t as size_t;
| |_________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
help: try
|
1094 ~ length = (length as libc::c_ulong).wrapping_add(
1095 + (*emitter)
1096 + .anchor_data
1097 + .anchor_length
1098 + .wrapping_add((*emitter).tag_data.handle_length)
1099 + .wrapping_add((*emitter).tag_data.suffix_length),
1100 ~ ) as size_t;
|
error: casting to the same type is unnecessary (`u64` -> `u64`)
--> src/emitter.rs:1094:22
|
1094 | length = (length as libc::c_ulong).wrapping_add(
| ______________________^
1095 | | (*emitter)
1096 | | .anchor_data
1097 | | .anchor_length
1098 | | .wrapping_add((*emitter).tag_data.handle_length)
1099 | | .wrapping_add((*emitter).tag_data.suffix_length),
1100 | | ) as size_t as size_t;
| |_______________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
help: try
|
1094 ~ length = (length as libc::c_ulong).wrapping_add(
1095 + (*emitter)
1096 + .anchor_data
1097 + .anchor_length
1098 + .wrapping_add((*emitter).tag_data.handle_length)
1099 + .wrapping_add((*emitter).tag_data.suffix_length),
1100 ~ ) as size_t;
|
error: casting to the same type is unnecessary (`u64` -> `u64`)
--> src/emitter.rs:1094:22
|
1094 | length = (length as libc::c_ulong).wrapping_add(
| ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `length`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting to the same type is unnecessary (`u64` -> `u64`)
--> src/reader.rs:55:19
|
55 | *fresh2 = (*fresh2 as libc::c_ulong).wrapping_add(2_u64) as size_t as size_t;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(*fresh2 as libc::c_ulong).wrapping_add(2_u64) as size_t`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting to the same type is unnecessary (`u64` -> `u64`)
--> src/reader.rs:55:19
|
55 | *fresh2 = (*fresh2 as libc::c_ulong).wrapping_add(2_u64) as size_t as size_t;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(*fresh2 as libc::c_ulong).wrapping_add(2_u64)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting to the same type is unnecessary (`u64` -> `u64`)
--> src/reader.rs:55:19
|
55 | *fresh2 = (*fresh2 as libc::c_ulong).wrapping_add(2_u64) as size_t as size_t;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `*fresh2`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting to the same type is unnecessary (`u64` -> `u64`)
--> src/reader.rs:71:19
|
71 | *fresh4 = (*fresh4 as libc::c_ulong).wrapping_add(2_u64) as size_t as size_t;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(*fresh4 as libc::c_ulong).wrapping_add(2_u64) as size_t`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting to the same type is unnecessary (`u64` -> `u64`)
--> src/reader.rs:71:19
|
71 | *fresh4 = (*fresh4 as libc::c_ulong).wrapping_add(2_u64) as size_t as size_t;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(*fresh4 as libc::c_ulong).wrapping_add(2_u64)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting to the same type is unnecessary (`u64` -> `u64`)
--> src/reader.rs:71:19
|
71 | *fresh4 = (*fresh4 as libc::c_ulong).wrapping_add(2_u64) as size_t as size_t;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `*fresh4`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting to the same type is unnecessary (`u64` -> `u64`)
--> src/reader.rs:87:19
|
87 | *fresh6 = (*fresh6 as libc::c_ulong).wrapping_add(3_u64) as size_t as size_t;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(*fresh6 as libc::c_ulong).wrapping_add(3_u64) as size_t`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting to the same type is unnecessary (`u64` -> `u64`)
--> src/reader.rs:87:19
|
87 | *fresh6 = (*fresh6 as libc::c_ulong).wrapping_add(3_u64) as size_t as size_t;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(*fresh6 as libc::c_ulong).wrapping_add(3_u64)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting to the same type is unnecessary (`u64` -> `u64`)
--> src/reader.rs:87:19
|
87 | *fresh6 = (*fresh6 as libc::c_ulong).wrapping_add(3_u64) as size_t as size_t;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `*fresh6`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting to the same type is unnecessary (`u64` -> `u64`)
--> src/reader.rs:400:24
|
400 | *fresh15 = (*fresh15 as libc::c_ulong).wrapping_add(width as libc::c_ulong) as size_t
| ________________________^
401 | | as size_t;
| |_________________________^ help: try: `(*fresh15 as libc::c_ulong).wrapping_add(width as libc::c_ulong) as size_t`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting to the same type is unnecessary (`u64` -> `u64`)
--> src/reader.rs:400:24
|
400 | *fresh15 = (*fresh15 as libc::c_ulong).wrapping_add(width as libc::c_ulong) as size_t
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `(*fresh15 as libc::c_ulong).wrapping_add(width as libc::c_ulong)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: casting to the same type is unnecessary (`u64` -> `u64`)
--> src/reader.rs:400:24
|
400 | *fresh15 = (*fresh15 as libc::c_ulong).wrapping_add(width as libc::c_ulong) as size_t
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `*fresh15`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast
error: boolean to int conversion using if
--> src/reader.rs:301:28
|
301 | high = if (*parser).encoding == YAML_UTF16LE_ENCODING {
| ____________________________^
302 | | 1
303 | | } else {
304 | | 0
305 | | };
| |_____________________^ help: replace with from: `i32::from((*parser).encoding == YAML_UTF16LE_ENCODING)`
|
= note: `-D clippy::bool-to-int-with-if` implied by `-D clippy::all`
= note: `((*parser).encoding == YAML_UTF16LE_ENCODING) as i32` or `((*parser).encoding == YAML_UTF16LE_ENCODING).into()` can also be valid options
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_to_int_with_if
error: boolean to int conversion using if
--> src/writer.rs:58:29
|
58 | let high: libc::c_int = if (*emitter).encoding == YAML_UTF16LE_ENCODING {
| _____________________________^
59 | | 1
60 | | } else {
61 | | 0
62 | | };
| |_____^ help: replace with from: `i32::from((*emitter).encoding == YAML_UTF16LE_ENCODING)`
|
= note: `((*emitter).encoding == YAML_UTF16LE_ENCODING) as i32` or `((*emitter).encoding == YAML_UTF16LE_ENCODING).into()` can also be valid options
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#bool_to_int_with_if