Skip to content

Commit 75b10d3

Browse files
committed
Satisfy clippy
1 parent 15a8ab2 commit 75b10d3

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

rewatch/src/main.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -207,10 +207,6 @@ mod tests {
207207
parse_cli(args.iter().map(OsString::from).collect())
208208
}
209209

210-
fn parse_os(args: Vec<OsString>) -> Result<cli::Cli, clap::Error> {
211-
parse_cli(args)
212-
}
213-
214210
#[test]
215211
fn defaults_to_build_without_args() {
216212
let cli = parse(&["rescript"]).expect("expected default build command");
@@ -262,7 +258,7 @@ mod tests {
262258
use std::os::unix::ffi::OsStringExt;
263259

264260
let args = vec![OsString::from("rescript"), OsString::from_vec(vec![0xff])];
265-
let err = parse_os(args).expect_err("expected clap to report invalid utf8");
261+
let err = parse_cli(args).expect_err("expected clap to report invalid utf8");
266262
assert_eq!(err.kind(), ErrorKind::InvalidUtf8);
267263
}
268264
}

0 commit comments

Comments
 (0)