mirror of
https://github.com/TECHNOFAB11/tmux-copyrat.git
synced 2025-12-14 17:03:50 +01:00
refactor: follow clippy suggestions
This commit is contained in:
parent
7e28931f6c
commit
ffd8e9b12d
7 changed files with 38 additions and 69 deletions
|
|
@ -16,7 +16,7 @@ fn main() {
|
|||
handle.read_to_string(&mut buffer).unwrap();
|
||||
|
||||
// Execute copyrat over the buffer (will take control over stdout).
|
||||
// This returns the selected matches.
|
||||
// This returns the selected matche.
|
||||
let selection: Option<(String, bool)> = run(buffer, &opt);
|
||||
|
||||
// Early exit, signaling no selections were found.
|
||||
|
|
@ -37,7 +37,7 @@ fn main() {
|
|||
.open(target)
|
||||
.expect("Unable to open the target file");
|
||||
|
||||
file.write(text.as_bytes()).unwrap();
|
||||
file.write_all(text.as_bytes()).unwrap();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue