From 364e8eaaabc320b7fdfa8b14e276aa340a61b861 Mon Sep 17 00:00:00 2001 From: Sophie Dankel <47993817+sdankel@users.noreply.github.com> Date: Mon, 18 Sep 2023 22:45:23 -0700 Subject: [PATCH] Update toolchain help message (#486) * Update toolchain.rs * update override string --- src/commands/toolchain.rs | 2 +- src/toolchain_override.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/commands/toolchain.rs b/src/commands/toolchain.rs index c40bea2cc..f5e18b178 100644 --- a/src/commands/toolchain.rs +++ b/src/commands/toolchain.rs @@ -22,7 +22,7 @@ pub enum ToolchainCommand { #[derive(Debug, Parser)] pub struct InstallCommand { - /// Toolchain name [possible values: latest, beta-1, beta-2, beta-3, nightly] + /// Toolchain name [possible values: latest, beta-1, beta-2, beta-3, beta-4, nightly] pub name: String, } diff --git a/src/toolchain_override.rs b/src/toolchain_override.rs index bc858ff73..d1cdadb50 100644 --- a/src/toolchain_override.rs +++ b/src/toolchain_override.rs @@ -69,7 +69,7 @@ where |_| { Err(Error::invalid_value( serde::de::Unexpected::Str(&channel_str), - &"one of ", + &"one of ", )) }, Result::Ok, @@ -260,7 +260,7 @@ channel = "nightly" let e = result.unwrap_err(); assert_eq!(e .to_string(), - "invalid value: string \"latest\", expected one of for key `toolchain.channel`".to_string()); + "invalid value: string \"latest\", expected one of for key `toolchain.channel`".to_string()); let result = OverrideCfg::from_toml(NIGHTLY); assert!(result.is_err()); @@ -268,7 +268,7 @@ channel = "nightly" assert_eq!(e .to_string(), - "invalid value: string \"nightly\", expected one of for key `toolchain.channel`".to_string()); + "invalid value: string \"nightly\", expected one of for key `toolchain.channel`".to_string()); } #[test]