Update preset.rs
This commit is contained in:
parent
5ef0648bf4
commit
e80c7dff8d
1 changed files with 2 additions and 7 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq)]
|
||||
pub enum Preset {
|
||||
Custom,
|
||||
[default]
|
||||
Xkcd,
|
||||
Glider,
|
||||
SmallExploder,
|
||||
|
|
@ -114,12 +115,6 @@ impl Preset {
|
|||
}
|
||||
}
|
||||
|
||||
impl Default for Preset {
|
||||
fn default() -> Preset {
|
||||
Preset::Xkcd
|
||||
}
|
||||
}
|
||||
|
||||
impl std::fmt::Display for Preset {
|
||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||
write!(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue