mirror of
https://gitee.com/openharmony/third_party_rust_unicode-ident
synced 2024-11-23 07:29:52 +00:00
Ignore let_underscore_untyped pedantic clippy lint
error: non-binding `let` without a type annotation --> generate/src/parse.rs:33:9 | 33 | let _ = writeln!(io::stderr(), "{}: {err}\n{suggestion}", ucd_dir.display()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = 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: `-D clippy::let-underscore-untyped` implied by `-D clippy::pedantic` error: non-binding `let` without a type annotation --> generate/src/parse.rs:42:13 | 42 | let _ = writeln!(io::stderr(), "{filename} line {i} is unexpected:\n{line}"); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = 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 error: non-binding `let` without a type annotation --> generate/src/main.rs:151:9 | 151 | let _ = writeln!(io::stderr(), "{}: {err}", path.display()); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = 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 error: non-binding `let` without a type annotation --> tests/static_size.rs:28:5 | 28 | let _ = tables::BY_NAME; | ^^^^^^^^^^^^^^^^^^^^^^^^ | = 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: `-D clippy::let-underscore-untyped` implied by `-D clippy::pedantic` error: non-binding `let` without a type annotation --> tests/static_size.rs:75:5 | 75 | let _ = trie::BY_NAME; | ^^^^^^^^^^^^^^^^^^^^^^ | = 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
This commit is contained in:
parent
6fd6b654dd
commit
90954572e0
@ -11,6 +11,7 @@
|
|||||||
#![allow(
|
#![allow(
|
||||||
clippy::cast_lossless,
|
clippy::cast_lossless,
|
||||||
clippy::cast_possible_truncation, // https://github.com/rust-lang/rust-clippy/issues/9613
|
clippy::cast_possible_truncation, // https://github.com/rust-lang/rust-clippy/issues/9613
|
||||||
|
clippy::let_underscore_untyped,
|
||||||
clippy::match_wild_err_arm,
|
clippy::match_wild_err_arm,
|
||||||
clippy::module_name_repetitions,
|
clippy::module_name_repetitions,
|
||||||
clippy::too_many_lines,
|
clippy::too_many_lines,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#![allow(clippy::unreadable_literal)]
|
#![allow(clippy::let_underscore_untyped, clippy::unreadable_literal)]
|
||||||
|
|
||||||
use std::mem::size_of_val;
|
use std::mem::size_of_val;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user