Skip to content
This repository has been archived by the owner on Dec 3, 2024. It is now read-only.

GC included txns

GC included txns #291

GitHub Actions / clippy failed May 22, 2024 in 0s

clippy

2 errors

Details

Results

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

Versions

  • rustc 1.78.0 (9b00956e5 2024-04-29)
  • cargo 1.78.0 (54d8815d0 2024-03-26)
  • clippy 0.1.78 (9b00956 2024-04-29)

Annotations

Check failure on line 984 in src/builder_state.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

assigning the result of `Clone::clone()` may be inefficient

error: assigning the result of `Clone::clone()` may be inefficient
   --> src/builder_state.rs:984:13
    |
984 |             included_txns_old = included_txns.clone();
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_from()`: `included_txns_old.clone_from(&included_txns)`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones

Check failure on line 983 in src/builder_state.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

assigning the result of `Clone::clone()` may be inefficient

error: assigning the result of `Clone::clone()` may be inefficient
   --> src/builder_state.rs:983:13
    |
983 |             included_txns_expiring = included_txns_old.clone();
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `clone_from()`: `included_txns_expiring.clone_from(&included_txns_old)`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#assigning_clones
    = note: `-D clippy::assigning-clones` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::assigning_clones)]`