Clippy changes

This commit is contained in:
Jeremy Kolb 2019-07-04 22:59:28 -04:00
parent 21f70a7293
commit 6b4ec73b7e
6 changed files with 21 additions and 26 deletions

View file

@ -131,7 +131,8 @@ impl CrateGraph {
if self.dfs_find(from, to, &mut FxHashSet::default()) {
return Err(CyclicDependencies);
}
Ok(self.arena.get_mut(&from).unwrap().add_dep(name, to))
self.arena.get_mut(&from).unwrap().add_dep(name, to);
Ok(())
}
pub fn is_empty(&self) -> bool {