From 82faafde2c493a4a61fcf71e6c650552699053e7 Mon Sep 17 00:00:00 2001 From: Michael Gattozzi Date: Thu, 19 Dec 2019 13:38:30 -0500 Subject: Upgrade Rust from 1.39 to 1.40 --- .cargo/config | 2 -- configamajig/src/lib.rs | 5 +++-- rust-toolchain | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.cargo/config b/.cargo/config index 76fe2f0..59e1ea1 100644 --- a/.cargo/config +++ b/.cargo/config @@ -47,8 +47,6 @@ rustflags = [ "-D", "unconditional-recursion", "-D", - "unions-with-drop-fields", - "-D", "unused", "-D", "unused-allocation", diff --git a/configamajig/src/lib.rs b/configamajig/src/lib.rs index b67d4f2..ba13623 100644 --- a/configamajig/src/lib.rs +++ b/configamajig/src/lib.rs @@ -95,7 +95,7 @@ pub struct UserConfig { } impl UserConfig { - /// Create a new UserConfig from a given name and assign UUID to them + /// Create a new `UserConfig` from a given name and assign UUID to them pub fn new(name: impl Into) -> Self { Self { name: name.into(), @@ -111,7 +111,8 @@ pub struct RepoConfig { } impl RepoConfig { - /// Create a new RepoConfig + /// Create a new `RepoConfig` + #[must_use] pub fn new() -> Self { Self { maintainers: Vec::new(), diff --git a/rust-toolchain b/rust-toolchain index 5edffce..32b7211 100644 --- a/rust-toolchain +++ b/rust-toolchain @@ -1 +1 @@ -1.39.0 +1.40.0 -- cgit v1.2.3