Fix clippy lints for Rust 1.68

This commit is contained in:
Héctor Ramón Jiménez 2023-03-14 11:11:17 +01:00
parent 8f14b448d2
commit 1816c985fa
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
7 changed files with 18 additions and 54 deletions

View file

@ -61,8 +61,9 @@ impl Sandbox for Example {
}
}
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]
pub enum Language {
#[default]
Rust,
Elm,
Ruby,
@ -84,12 +85,6 @@ impl Language {
];
}
impl Default for Language {
fn default() -> Language {
Language::Rust
}
}
impl std::fmt::Display for Language {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(