Skip to content

Commit

Permalink
1.77 Clippy :)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrostyCoolSlug committed Mar 24, 2024
1 parent 91ec67c commit 4ecc49d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 294 deletions.
11 changes: 6 additions & 5 deletions defaults/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

use clap::Parser;
use std::fs;
use std::io::Error;

use crate::Errors::{PathNotDir, PathNotExist};
use include_dir::{include_dir, Dir};
Expand All @@ -17,8 +16,8 @@ const ICONS: Dir = include_dir!("./defaults/resources/icons");
enum Errors {
PathNotExist,
PathNotDir,
ErrorRemovingFile(Error),
ErrorWritingFile(Error),
ErrorRemovingFile,
ErrorWritingFile,
}

fn main() -> Result<(), Errors> {
Expand Down Expand Up @@ -47,12 +46,14 @@ fn main() -> Result<(), Errors> {
if !args.overwrite {
continue;
} else if let Err(e) = fs::remove_file(&file_path) {
return Err(Errors::ErrorRemovingFile(e));
eprintln!("Error Removing File: {}", e);
return Err(Errors::ErrorRemovingFile);
}
}

if let Err(e) = fs::write(&file_path, file.contents()) {
return Err(Errors::ErrorWritingFile(e));
eprintln!("Error Writing File: {}", e);
return Err(Errors::ErrorWritingFile);
}
}

Expand Down
289 changes: 0 additions & 289 deletions usb/src/colours.rs

This file was deleted.

0 comments on commit 4ecc49d

Please sign in to comment.