Skip to content

Support splitting selections based on a regular expression (#62) #143

Support splitting selections based on a regular expression (#62)

Support splitting selections based on a regular expression (#62) #143

GitHub Actions / clippy succeeded Aug 24, 2024 in 0s

reviewdog [clippy] report

reported by reviewdog 🐶

Findings (0)
Filtered Findings (6)

crates/modalkit/src/editing/buffer/selection.rs|545 col 79| warning: redundant clone
--> crates/modalkit/src/editing/buffer/selection.rs:545:79
|
545 | let anchor = CursorState::Selection(anchor.clone(), anchor.clone(), shape);
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> crates/modalkit/src/editing/buffer/selection.rs:545:73
|
545 | let anchor = CursorState::Selection(anchor.clone(), anchor.clone(), shape);
| ^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
= note: #[warn(clippy::redundant_clone)] on by default
crates/modalkit/src/editing/buffer/selection.rs|548 col 44| warning: redundant clone
--> crates/modalkit/src/editing/buffer/selection.rs:548:44
|
548 | state.set_anchor(cursor.clone());
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> crates/modalkit/src/editing/buffer/selection.rs:548:38
|
548 | state.set_anchor(cursor.clone());
| ^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
crates/modalkit/src/editing/buffer/selection.rs|571 col 54| warning: redundant clone
--> crates/modalkit/src/editing/buffer/selection.rs:571:54
|
571 | ... CursorState::Selection(lc.clone(), rc.clone(), shape)
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> crates/modalkit/src/editing/buffer/selection.rs:571:52
|
571 | ... CursorState::Selection(lc.clone(), rc.clone(), shape)
| ^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
crates/modalkit/src/editing/buffer/selection.rs|571 col 66| warning: redundant clone
--> crates/modalkit/src/editing/buffer/selection.rs:571:66
|
571 | ... CursorState::Selection(lc.clone(), rc.clone(), shape)
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> crates/modalkit/src/editing/buffer/selection.rs:571:64
|
571 | ... CursorState::Selection(lc.clone(), rc.clone(), shape)
| ^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
crates/modalkit/src/editing/buffer/selection.rs|586 col 54| warning: redundant clone
--> crates/modalkit/src/editing/buffer/selection.rs:586:54
|
586 | ... CursorState::Selection(lc.clone(), rc.clone(), shape)
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> crates/modalkit/src/editing/buffer/selection.rs:586:52
|
586 | ... CursorState::Selection(lc.clone(), rc.clone(), shape)
| ^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone
crates/modalkit/src/editing/buffer/selection.rs|586 col 66| warning: redundant clone
--> crates/modalkit/src/editing/buffer/selection.rs:586:66
|
586 | ... CursorState::Selection(lc.clone(), rc.clone(), shape)
| ^^^^^^^^ help: remove this
|
note: this value is dropped without further use
--> crates/modalkit/src/editing/buffer/selection.rs:586:64
|
586 | ... CursorState::Selection(lc.clone(), rc.clone(), shape)
| ^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone