Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Pin Rust to 1.47 and fix new clippy lints #1609

Merged
merged 1 commit into from
Oct 19, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions rust-toolchain
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.47.0
10 changes: 2 additions & 8 deletions src/commands/dev/server_config/protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

Expand Down