Skip to content

Speedup hashmap by speeding up node creation (#76) #49

Speedup hashmap by speeding up node creation (#76)

Speedup hashmap by speeding up node creation (#76) #49

GitHub Actions / clippy succeeded Apr 4, 2024 in 1s

clippy

2 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 2
Note 0
Help 0

Versions

  • rustc 1.77.1 (7cf61ebde 2024-03-27)
  • cargo 1.77.1 (e52e36006 2024-03-26)
  • clippy 0.1.77 (7cf61eb 2024-03-27)

Annotations

Check warning on line 138 in src/nodes/hamt.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

this expression borrows a value the compiler would automatically borrow

warning: this expression borrows a value the compiler would automatically borrow
   --> src/nodes/hamt.rs:138:13
    |
138 |             (&mut *result.get()).write(Node::new());
    |             ^^^^^^^^^^^^^^^^^^^^ help: change this to: `(*result.get())`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
    = note: `#[warn(clippy::needless_borrow)]` on by default

Check warning on line 26 in src/nodes/hamt.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

manual implementation of `BuildHasher::hash_one`

warning: manual implementation of `BuildHasher::hash_one`
  --> src/nodes/hamt.rs:26:5
   |
26 |     hasher.finish() as HashBits
   |     ^^^^^^^^^^^^^^^
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_hash_one
   = note: `#[warn(clippy::manual_hash_one)]` on by default
help: try
   |
24 ~     
25 ~     
26 ~     bh.hash_one(&key) as HashBits
   |