From d7f3d858add197f91969c69b1d4a14dbcb801f03 Mon Sep 17 00:00:00 2001 From: Jeremy Kolb Date: Sun, 19 Apr 2020 15:15:49 -0400 Subject: Some clippy fixes --- crates/ra_db/src/fixture.rs | 2 +- crates/ra_db/src/input.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ra_db') diff --git a/crates/ra_db/src/fixture.rs b/crates/ra_db/src/fixture.rs index 7777ce81e..8248684ee 100644 --- a/crates/ra_db/src/fixture.rs +++ b/crates/ra_db/src/fixture.rs @@ -235,7 +235,7 @@ fn parse_meta(meta: &str) -> ParsedMeta { "env" => { for key in value.split(',') { if let Some((k, v)) = split1(key, '=') { - env.set(k.into(), v.into()); + env.set(k, v.into()); } } } diff --git a/crates/ra_db/src/input.rs b/crates/ra_db/src/input.rs index 5ddce98c6..ab14e2d5e 100644 --- a/crates/ra_db/src/input.rs +++ b/crates/ra_db/src/input.rs @@ -327,7 +327,7 @@ impl ExternSource { self.extern_paths.iter().find_map(|(root_path, id)| { if let Ok(rel_path) = path.strip_prefix(root_path) { let rel_path = RelativePathBuf::from_path(rel_path).ok()?; - Some((id.clone(), rel_path)) + Some((*id, rel_path)) } else { None } -- cgit v1.2.3