manual fix of some clippy stuff
This commit is contained in:
parent
c38fe8bba5
commit
7996a02681
2 changed files with 4 additions and 10 deletions
|
@ -12,7 +12,6 @@ use std::io::Cursor;
|
|||
use std::{
|
||||
fmt::Debug,
|
||||
io::{Read, Write},
|
||||
usize,
|
||||
};
|
||||
|
||||
struct Chunk {
|
||||
|
@ -31,11 +30,6 @@ impl Debug for Chunk {
|
|||
}
|
||||
}
|
||||
|
||||
impl Chunk {
|
||||
fn kind_to_string(&self) -> String {
|
||||
String::from_utf8_lossy(&self.kind).to_string()
|
||||
}
|
||||
}
|
||||
|
||||
pub fn fix(bytes: Vec<u8>) -> Vec<u8> {
|
||||
let mut bufread = Cursor::new(bytes);
|
||||
|
|
|
@ -27,9 +27,9 @@ struct Args {
|
|||
|
||||
fn main() {
|
||||
// argument parsing yep
|
||||
let Args: Args = Args::parse();
|
||||
let mut pathfr = Args.path.clone();
|
||||
let debugmode = Args.debug;
|
||||
let args: Args = Args::parse();
|
||||
let mut pathfr = args.path.clone();
|
||||
let debugmode = args.debug;
|
||||
|
||||
let mut filelist: Vec<PathBuf> = Vec::new();
|
||||
|
||||
|
@ -59,7 +59,7 @@ fn main() {
|
|||
filelist.push(path.display().to_string().parse().unwrap());
|
||||
}
|
||||
Err(e) => {
|
||||
eprintln!("Globbing error... uh oh...");
|
||||
eprintln!("Globbing error... uh oh... {}",e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue