Skip to content

Commit ff5dc01

Browse files
committed
Fix minor clippy warnings in examples.
1 parent 709e52d commit ff5dc01

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mp4parse_capi/examples/afl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ fn doit() -> bool {
1111
std::io::stdin().read_to_end(&mut input).unwrap();
1212
let mut reader = Cursor::new(&input);
1313
let mut context = mp4parse::MediaContext::new();
14-
return mp4parse::read_mp4(&mut reader, &mut context).is_ok();
14+
mp4parse::read_mp4(&mut reader, &mut context).is_ok()
1515
}
1616

1717
#[cfg(feature = "fuzz")]

mp4parse_capi/examples/dump.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use std::env;
44
use std::fs::File;
55
use std::io::{Seek, SeekFrom};
66

7-
fn dump_file(filename: &String, verbose: bool) {
7+
fn dump_file(filename: &str, verbose: bool) {
88
let mut reader = match File::open(filename) {
99
Ok(reader) => reader,
1010
_ => {
@@ -48,7 +48,7 @@ fn main() {
4848
if verbose {
4949
println!("-- dump of '{}' --", filename);
5050
}
51-
dump_file(&filename, verbose);
51+
dump_file(filename, verbose);
5252
if verbose {
5353
println!("-- end of '{}' --", filename);
5454
}

0 commit comments

Comments
 (0)