Apply clippy suggestions

Signed-off-by: Mateusz Mikuła <mati865@gmail.com>
This commit is contained in:
Mateusz Mikuła
2018-03-15 16:07:15 +01:00
parent 8749927973
commit cfb9b982c5
35 changed files with 101 additions and 107 deletions

View File

@@ -24,7 +24,7 @@ pub struct SpanlessEq<'a, 'tcx: 'a> {
impl<'a, 'tcx: 'a> SpanlessEq<'a, 'tcx> {
pub fn new(cx: &'a LateContext<'a, 'tcx>) -> Self {
Self {
cx: cx,
cx,
ignore_fn: false,
}
}
@@ -295,7 +295,7 @@ pub struct SpanlessHash<'a, 'tcx: 'a> {
impl<'a, 'tcx: 'a> SpanlessHash<'a, 'tcx> {
pub fn new(cx: &'a LateContext<'a, 'tcx>) -> Self {
Self {
cx: cx,
cx,
s: DefaultHasher::new(),
}
}