Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkirsz committed Jul 3, 2023
1 parent 25bd59d commit 74ada12
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion crates/turbo-tasks-fs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1139,7 +1139,7 @@ impl FileSystemPathVc {
// Like `Path::with_extension` and `PathBuf::set_extension`, if the extension is empty,
// we remove the extension altogether.
match extension.is_empty() {
true => format!("{path_without_extension}"),
true => path_without_extension.to_string(),
false => format!("{path_without_extension}.{extension}"),
},
))
Expand Down
6 changes: 6 additions & 0 deletions crates/turbo-tasks-fs/src/virtual_fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ impl VirtualFileSystemVc {
}
}

impl Default for VirtualFileSystemVc {
fn default() -> Self {
Self::new()
}
}

#[turbo_tasks::value_impl]
impl FileSystem for VirtualFileSystem {
#[turbo_tasks::function]
Expand Down

0 comments on commit 74ada12

Please sign in to comment.