Skip to content
Myr

Fix clippy warnings

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by sharkdp · committed by sharkdp · parent 1397dbc · Browse files · 1 file+4 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−4 removed

  • other:+4 added−4 removed

1 file+4 added−4 removed

modified:src/main.rs+4 added-4 removed
172 unmodified lines
173 }174 }175176 let r = if config.null_separator {177 write!(handle, "{}", '\0')177 write!(handle, "\0")178 } else {179 writeln!(handle, "")180 };181 if r.is_err() {
81 unmodified lines
263264 // Spawn the sender threads.265 walker.run(|| {266 let base = base.to_owned();267 let config = config.clone();268 let pattern = pattern.clone();267 let config = Arc::clone(&config);268 let pattern = Arc::clone(&pattern);269 let tx_thread = tx.clone();270271 Box::new(move |entry_o| {272 let entry = match entry_o {
163 unmodified lines
436 .and_then(|n| usize::from_str_radix(n, 10).ok()),437 threads: std::cmp::max(438 matches.value_of("threads")439 .and_then(|n| usize::from_str_radix(n, 10).ok())440 .unwrap_or(num_cpus::get()),440 .unwrap_or_else(num_cpus::get),441 1442 ),443 max_buffer_time: matches.value_of("max-buffer-time")444 .and_then(|n| u64::from_str_radix(n, 10).ok())
22 unmodified lines