Skip to content

Commit 11caebe

Browse files
detrumimatklad
andauthored
Remove unneeded Box::new
Co-Authored-By: Aleksey Kladov <aleksey.kladov@gmail.com>
1 parent 738d5a7 commit 11caebe

File tree

1 file changed

+1
-1
lines changed
  • crates/ra_project_model/src

1 file changed

+1
-1
lines changed

crates/ra_project_model/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ fn find_cargo_toml(path: &Path) -> Result<PathBuf> {
372372
}
373373
curr = path.parent();
374374
}
375-
Err(Box::new(CargoTomlNotFoundError(path.to_path_buf())))
375+
Err(CargoTomlNotFoundError(path.to_path_buf()))?
376376
}
377377

378378
pub fn get_rustc_cfg_options() -> CfgOptions {

0 commit comments

Comments
 (0)