mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
implement Default trait, remove Clone derive
This commit is contained in:
parent
d9fea7becd
commit
e4118e1feb
1 changed files with 6 additions and 1 deletions
|
|
@ -3,7 +3,6 @@ const DOWNLOAD: &str = "download:";
|
||||||
const SOURCE: &str = "source:";
|
const SOURCE: &str = "source:";
|
||||||
|
|
||||||
/// Feature wrapper for client `Request`
|
/// Feature wrapper for client `Request`
|
||||||
#[derive(Clone)]
|
|
||||||
pub enum Feature {
|
pub enum Feature {
|
||||||
Default,
|
Default,
|
||||||
Download,
|
Download,
|
||||||
|
|
@ -38,3 +37,9 @@ impl Feature {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl Default for Feature {
|
||||||
|
fn default() -> Self {
|
||||||
|
Feature::Default
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue