diff --git a/rust-toolchain b/rust-toolchain new file mode 100644 index 000000000..245744f34 --- /dev/null +++ b/rust-toolchain @@ -0,0 +1 @@ +1.47.0 \ No newline at end of file diff --git a/src/commands/dev/server_config/protocol.rs b/src/commands/dev/server_config/protocol.rs index 3b9711e46..0986c966f 100644 --- a/src/commands/dev/server_config/protocol.rs +++ b/src/commands/dev/server_config/protocol.rs @@ -8,17 +8,11 @@ pub enum Protocol { impl Protocol { pub fn is_http(self) -> bool { - match self { - Protocol::Http => true, - _ => false, - } + matches!(self, Protocol::Http) } pub fn is_https(self) -> bool { - match self { - Protocol::Https => true, - _ => false, - } + matches!(self, Protocol::Https) } }