diff options
author | Jeremy Kolb <[email protected]> | 2019-07-05 03:59:28 +0100 |
---|---|---|
committer | Jeremy Kolb <[email protected]> | 2019-07-05 04:00:00 +0100 |
commit | 6b4ec73b7ed2522b837368a11863afb4b432b9a4 (patch) | |
tree | 3df753fe58ec1c3fccb48cc2c889fff36e360f33 /crates/ra_db | |
parent | 21f70a7293e7b24dedeec9a504763a1a3ef57675 (diff) |
Clippy changes
Diffstat (limited to 'crates/ra_db')
-rw-r--r-- | crates/ra_db/src/input.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/ra_db/src/input.rs b/crates/ra_db/src/input.rs index 2d563bd01..ad8e10c52 100644 --- a/crates/ra_db/src/input.rs +++ b/crates/ra_db/src/input.rs | |||
@@ -131,7 +131,8 @@ impl CrateGraph { | |||
131 | if self.dfs_find(from, to, &mut FxHashSet::default()) { | 131 | if self.dfs_find(from, to, &mut FxHashSet::default()) { |
132 | return Err(CyclicDependencies); | 132 | return Err(CyclicDependencies); |
133 | } | 133 | } |
134 | Ok(self.arena.get_mut(&from).unwrap().add_dep(name, to)) | 134 | self.arena.get_mut(&from).unwrap().add_dep(name, to); |
135 | Ok(()) | ||
135 | } | 136 | } |
136 | 137 | ||
137 | pub fn is_empty(&self) -> bool { | 138 | pub fn is_empty(&self) -> bool { |