mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-14 17:07:17 +00:00
56 lines
1.1 KiB
Text
56 lines
1.1 KiB
Text
error: manual implementation of `BuildHasher::hash_one`
|
|
--> $DIR/manual_hash_one.rs:9:5
|
|
|
|
|
LL | hasher.finish()
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `-D clippy::manual-hash-one` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::manual_hash_one)]`
|
|
help: try
|
|
|
|
|
LL ~
|
|
LL ~
|
|
LL ~ b.hash_one(&true)
|
|
|
|
|
|
|
error: manual implementation of `BuildHasher::hash_one`
|
|
--> $DIR/manual_hash_one.rs:15:13
|
|
|
|
|
LL | let _ = hasher.finish();
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
help: try
|
|
|
|
|
LL ~
|
|
LL ~
|
|
LL ~ let _ = b.hash_one(&s[4..10]);
|
|
|
|
|
|
|
error: manual implementation of `BuildHasher::hash_one`
|
|
--> $DIR/manual_hash_one.rs:21:13
|
|
|
|
|
LL | let _ = hasher.finish();
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
help: try
|
|
|
|
|
LL ~
|
|
LL ~
|
|
LL ~ let _ = b.hash_one(&v);
|
|
|
|
|
|
|
error: manual implementation of `BuildHasher::hash_one`
|
|
--> $DIR/manual_hash_one.rs:88:13
|
|
|
|
|
LL | let _ = hasher.finish();
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
help: try
|
|
|
|
|
LL ~
|
|
LL ~
|
|
LL ~ let _ = b.hash_one(&v);
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|