Skip to content

Commit

Permalink
refactor: run cargo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
InioX committed Dec 14, 2023
1 parent 040fff9 commit 0a3758b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use material_color_utilities_rs::{
scheme::{scheme::Scheme, scheme_android::SchemeAndroid},
};

use std::collections::HashMap;


use clap::{Parser, ValueEnum};
use color_eyre::{eyre::Result, Report};
Expand Down
8 changes: 4 additions & 4 deletions src/util/template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ use color_eyre::eyre::ContextCompat;
use color_eyre::eyre::WrapErr;
use color_eyre::Help;
use color_eyre::{eyre::Result, Report};
use color_eyre::SectionExt;

use colorsys::{Hsl,Rgb,ColorAlpha};

use colorsys::{Hsl,Rgb};
use serde::{Deserialize, Serialize};

use std::str;
Expand Down Expand Up @@ -150,7 +150,7 @@ impl Template {
) -> Result<(), Report> {
let default_prefix = "@".to_string();

let prefix: &String = match &prefix {
let _prefix: &String = match &prefix {
Some(prefix) => prefix,
None => &default_prefix,
};
Expand Down Expand Up @@ -184,7 +184,7 @@ impl Template {
continue;
}

let mut data = read_to_string(&input_path_absolute)
let data = read_to_string(&input_path_absolute)
.wrap_err(format!("Could not read the {} template.", name))
.suggestion("Try converting the file to use UTF-8 encoding.")?;

Expand Down

0 comments on commit 0a3758b

Please sign in to comment.