diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-05-11 22:21:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-11 22:21:08 +0200 |
| commit | dfa3677bee58a39296daf85645eff7d51cbad8ae (patch) | |
| tree | f118ca7b1552fec31eb6a93009347897c3e0c18e /src/librustc_query_system | |
| parent | dd537686927b344c229092c2aae78db7c735c44b (diff) | |
| parent | 8bfd84539e847b9ac9d7c811a370a9c3840d6c3b (diff) | |
Rollup merge of #72109 - matthiaskrgr:cl8ppy, r=Dylan-DPC
Fix clippy warnings
Fixes clippy::{cone_on_copy, filter_next, redundant_closure, single_char_pattern, len_zero,redundant_field_names, useless_format, identity_conversion, map_clone, into_iter_on_ref, needless_return, option_as_ref_deref, unused_unit, unnecessary_mut_passed}
r? @Dylan-DPC
Diffstat (limited to 'src/librustc_query_system')
| -rw-r--r-- | src/librustc_query_system/dep_graph/dep_node.rs | 2 | ||||
| -rw-r--r-- | src/librustc_query_system/dep_graph/mod.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/librustc_query_system/dep_graph/dep_node.rs b/src/librustc_query_system/dep_graph/dep_node.rs index 36343365ab6..d8875f8ac64 100644 --- a/src/librustc_query_system/dep_graph/dep_node.rs +++ b/src/librustc_query_system/dep_graph/dep_node.rs @@ -80,7 +80,7 @@ impl<K: DepKind> DepNode<K> { } } - return dep_node; + dep_node } } diff --git a/src/librustc_query_system/dep_graph/mod.rs b/src/librustc_query_system/dep_graph/mod.rs index f85462eb78b..e8d02692f37 100644 --- a/src/librustc_query_system/dep_graph/mod.rs +++ b/src/librustc_query_system/dep_graph/mod.rs @@ -77,9 +77,9 @@ pub trait DepKind: Copy + fmt::Debug + Eq + Ord + Hash { OP: FnOnce() -> R; /// Access dependencies from current implicit context. - fn read_deps<OP>(op: OP) -> () + fn read_deps<OP>(op: OP) where - OP: for<'a> FnOnce(Option<&'a Lock<TaskDeps<Self>>>) -> (); + OP: for<'a> FnOnce(Option<&'a Lock<TaskDeps<Self>>>); fn can_reconstruct_query_key(&self) -> bool; } |
