aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_project_model/src
diff options
context:
space:
mode:
authorWilco Kusee <[email protected]>2020-01-08 16:22:08 +0000
committerGitHub <[email protected]>2020-01-08 16:22:08 +0000
commit11caebe6cea4d0ec51a1b886280f8c53548eda8e (patch)
tree7c699666d88bf4824bbf39a9662102aa0da1c1ce /crates/ra_project_model/src
parent738d5a7ec2e8f54e6084482c1d45abe93084cbff (diff)
Remove unneeded Box::new
Co-Authored-By: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ra_project_model/src')
-rw-r--r--crates/ra_project_model/src/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_project_model/src/lib.rs b/crates/ra_project_model/src/lib.rs
index e24801818..b7f6a9b57 100644
--- a/crates/ra_project_model/src/lib.rs
+++ b/crates/ra_project_model/src/lib.rs
@@ -372,7 +372,7 @@ fn find_cargo_toml(path: &Path) -> Result<PathBuf> {
372 } 372 }
373 curr = path.parent(); 373 curr = path.parent();
374 } 374 }
375 Err(Box::new(CargoTomlNotFoundError(path.to_path_buf()))) 375 Err(CargoTomlNotFoundError(path.to_path_buf()))?
376} 376}
377 377
378pub fn get_rustc_cfg_options() -> CfgOptions { 378pub fn get_rustc_cfg_options() -> CfgOptions {