Skip to content

Commit c330b9d

Browse files
committed
Clippy
1 parent 51d50d2 commit c330b9d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

espflash/src/cli/monitor/external_processors.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#![allow(clippy::needless_doctest_main)]
12
//! External processor support
23
//!
34
//! Via the command line argument `--processors` you can instruct espflash to run external executables to pre-process
@@ -104,7 +105,7 @@ impl Processor {
104105
}
105106

106107
pub fn send(&mut self, data: Vec<u8>) {
107-
self.stdin.write(&data).ok();
108+
let _ignored = self.stdin.write(&data).ok();
108109
}
109110
}
110111

@@ -128,7 +129,7 @@ impl ExternalProcessors {
128129

129130
let mut spawned = Vec::new();
130131
if let Some(processors) = processors {
131-
for processor in processors.split(",").into_iter() {
132+
for processor in processors.split(",") {
132133
let processor = std::process::Command::new(processor)
133134
.args(args.clone())
134135
.stdin(Stdio::piped())

espflash/src/cli/monitor/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ impl Drop for RawModeGuard {
6969
}
7070

7171
/// Open a serial monitor on the given serial port, using the given input parser.
72+
#[allow(clippy::too_many_arguments)]
7273
pub fn monitor(
7374
mut serial: Port,
7475
elf: Option<&[u8]>,

0 commit comments

Comments
 (0)