refactor: remove dead code (#3337)

This commit is contained in:
Hampus authored and GitHub committed 2026-10-09 01:41:26 +02:00
1 parent a19002652b
commit 93d1f8af46
1527 files changed
+21170 -73846

No files matched your search

+1 -7
View File
@@ -383,10 +383,6 @@ impl ReleaseChannel {
Self::Canary => "canary",
}
}
pub const fn is_canary(self) -> bool {
matches!(self, Self::Canary)
}
}
#[derive(Clone, Debug, Default)]
@@ -877,11 +873,9 @@ mod tests {
}
#[test]
fn release_channel_as_str_and_is_canary() {
fn release_channel_as_str() {
assert_eq!(ReleaseChannel::Stable.as_str(), "stable");
assert_eq!(ReleaseChannel::Canary.as_str(), "canary");
assert!(!ReleaseChannel::Stable.is_canary());
assert!(ReleaseChannel::Canary.is_canary());
}
#[test]