Remove unneeded Box::new
Co-Authored-By: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
@@ -372,7 +372,7 @@ fn find_cargo_toml(path: &Path) -> Result<PathBuf> {
|
|||||||
}
|
}
|
||||||
curr = path.parent();
|
curr = path.parent();
|
||||||
}
|
}
|
||||||
Err(Box::new(CargoTomlNotFoundError(path.to_path_buf())))
|
Err(CargoTomlNotFoundError(path.to_path_buf()))?
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get_rustc_cfg_options() -> CfgOptions {
|
pub fn get_rustc_cfg_options() -> CfgOptions {
|
||||||
|
|||||||
Reference in New Issue
Block a user