Skip to content

Commit

Permalink
styles: fix lint #59
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Jun 13, 2023
1 parent 0b3f2d5 commit bb8ae55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions libs/quake_processor/src/process_engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ pub struct ProcessEngine {}
impl ProcessEngine {
pub fn engine(text: &str) -> Box<dyn Processor> {
let processor: Box<dyn Processor> = match text {
"pdf" => Box::new(PdfProcessor::default()),
_ => Box::new(EmptyProcessor::default()),
"pdf" => Box::<PdfProcessor>::default(),
_ => Box::<EmptyProcessor>::default(),
};

processor
Expand Down
2 changes: 1 addition & 1 deletion quake_core/src/usecases/entry_usecases.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ pub fn create_entry_file(
) -> EntryFile {
let mut entry_file = EntryFile::default();
entry_file.set_properties(entry_define.create_default_properties(entry_text));
fs::write(&target_file, entry_file.to_string()).expect("cannot write to file");
fs::write(target_file, entry_file.to_string()).expect("cannot write to file");
entry_file
}

Expand Down

0 comments on commit bb8ae55

Please sign in to comment.