commit | f081412819a068faf0003c8ec2f93d9b27251ce1 | [log] [tgz] |
---|---|---|
author | David Tolnay <dtolnay@gmail.com> | Fri Jul 19 11:53:55 2019 -0700 |
committer | David Tolnay <dtolnay@gmail.com> | Fri Jul 19 11:54:00 2019 -0700 |
tree | 10f9e0318c5fcfb7390fcac74207ee03c3fa264a | |
parent | e02a29481848b5f7cc542263583888957ac831ce [diff] [blame] |
Use field init shorthand
diff --git a/build.rs b/build.rs index 1cc8b3b..b093a37 100644 --- a/build.rs +++ b/build.rs
@@ -102,9 +102,7 @@ let version = otry!(str::from_utf8(&output.stdout).ok()); let nightly = version.contains("nightly"); - Some(RustcVersion { - nightly: nightly, - }) + Some(RustcVersion { nightly }) } fn feature_allowed(feature: &str) -> bool {