Skip to content

Commit

Permalink
fix: compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
llenotre committed Jul 4, 2024
1 parent 013c0bb commit f5095f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mkfs/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub fn main(fs_name: &str, args: ArgsOs) {
"ext2",
Box::<ext2::Ext2Factory>::default() as Box<dyn FSFactory>,
)]);
let Some(factory) = factories.get(&args.fs_type) else {
let Some(factory) = factories.get(args.fs_type.as_str()) else {
error(
"mkfs",
format_args!("invalid filesystem type `{}`", args.fs_type),
Expand Down

0 comments on commit f5095f7

Please sign in to comment.