Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This fixes the following clippy warning: error: stripping a prefix manually --> src/cursor/find_cursor.rs:266:36 | 266 | let mut path = &path[1..]; | ^^^^^^^^^^ | = note: `-D clippy::manual-strip` implied by `-D warnings` note: the prefix was tested here --> src/cursor/find_cursor.rs:264:17 | 264 | if path.starts_with('~') { | ^^^^^^^^^^^^^^^^^^^^^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_strip help: try using the `strip_prefix` method | 264 ~ if let Some(<stripped>) = path.strip_prefix('~') { 265 | theme_dir.push(&home); 266 ~ let mut path = <stripped>; | Signed-off-by: Uli Schlachter <[email protected]>
- Loading branch information