commit | 34071ba2468722fb6d901ef99212ba8f3e8018fc | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Sun May 20 20:00:41 2018 -0700 |
committer | David Tolnay <dtolnay@gmail.com> | Sun May 20 20:00:41 2018 -0700 |
tree | 41154ae7e71a987bc7f2455b83016614f8b27f60 | |
parent | 106db5ea19c1caa43a8183715a220815a2b236bd [diff] [blame] |
Enable clippy pedantic lints
diff --git a/src/expr.rs b/src/expr.rs index ac55c98..a0078b6 100644 --- a/src/expr.rs +++ b/src/expr.rs
@@ -637,7 +637,7 @@ impl From<usize> for Index { fn from(index: usize) -> Index { - assert!(index < std::u32::MAX as usize); + assert!(index < u32::max_value() as usize); Index { index: index as u32, span: Span::call_site(),