Skip to content

Commit

Permalink
Merge pull request #254 from Pi-Cla/clippy
Browse files Browse the repository at this point in the history
Clippy fixes
  • Loading branch information
epage authored Aug 13, 2024
2 parents e2913fa + 1021a87 commit e8b928a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/in-depth/signals-hooked.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use signal_hook::{consts::SIGINT, iterator::Signals};
use std::{error::Error, thread, time::Duration};

fn main() -> Result<(), Box<dyn Error>> {
let mut signals = Signals::new(&[SIGINT])?;
let mut signals = Signals::new([SIGINT])?;

thread::spawn(move || {
for sig in signals.forever() {
Expand Down
2 changes: 1 addition & 1 deletion src/tutorial/cli-args-struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ fn main() {
let path = std::env::args().nth(2).expect("no path given");

let args = Cli {
pattern: pattern,
pattern,
path: std::path::PathBuf::from(path),
};

Expand Down

0 comments on commit e8b928a

Please sign in to comment.