diff options
| author | Xe Iaso <me@xeiaso.net> | 2023-08-21 21:19:49 -0400 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2023-08-21 21:19:49 -0400 |
| commit | 275327041b4ce5cac6e1adabc813ece54c646cd6 (patch) | |
| tree | ab4f9ce5b8aff7e39ed9b11f229ecd166155fd85 /src/app | |
| parent | 90da0c1daea6dfefe801548443a3889b19def2b2 (diff) | |
| download | xesite-275327041b4ce5cac6e1adabc813ece54c646cd6.tar.xz xesite-275327041b4ce5cac6e1adabc813ece54c646cd6.zip | |
fix clippy suggestions
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'src/app')
| -rw-r--r-- | src/app/config.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/app/config.rs b/src/app/config.rs index e1a9b53..a0f1273 100644 --- a/src/app/config.rs +++ b/src/app/config.rs @@ -152,18 +152,13 @@ impl Render for Link { } } -#[derive(Clone, Deserialize, Serialize)] +#[derive(Clone, Default, Deserialize, Serialize)] pub enum StockKind { Grant, + #[default] Options, } -impl Default for StockKind { - fn default() -> Self { - StockKind::Options - } -} - fn schema_context() -> String { "http://schema.org/".to_string() } |
