mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Remove unneeded Box::new
Co-Authored-By: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
parent
738d5a7ec2
commit
11caebe6ce
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue