[clippy] Fix a few clippy issues in lib/codegen/;

- don't generate "&& true" when generating instruction eq() fn;
- use more Self;
- use subsec_millis instead of subsec_nanos and divide;
- coalesce two ifs;
This commit is contained in:
Benjamin Bouvier
2018-07-10 16:55:19 +02:00
committed by Dan Gohman
parent 0616a960d6
commit bcc268a3cd
5 changed files with 11 additions and 13 deletions

View File

@@ -50,8 +50,8 @@ const K: usize = 0x517cc1b727220a95;
impl Default for FxHasher {
#[inline]
fn default() -> FxHasher {
FxHasher { hash: 0 }
fn default() -> Self {
Self { hash: 0 }
}
}