diff options
author | Eric Huss <eric@huss.org> | 2024-05-13 12:13:50 -0700 |
---|---|---|
committer | Eric Huss <eric@huss.org> | 2024-05-13 12:13:50 -0700 |
commit | 5bc87d5c175e1699d3705fcfa097644ef25449e4 (patch) | |
tree | d96f40f2465ebd5a400e3b8642ae10e4fa3e760e /src/config.rs | |
parent | 09576d7d57560b731e34cd6e46bf9e2098133e96 (diff) |
Apply a few minor clippy fixes
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/config.rs b/src/config.rs index b7c01599..eba95286 100644 --- a/src/config.rs +++ b/src/config.rs @@ -694,21 +694,13 @@ impl Default for Playground { } /// Configuration for tweaking how the HTML renderer handles code blocks. -#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] +#[derive(Debug, Default, Clone, PartialEq, Serialize, Deserialize)] #[serde(default, rename_all = "kebab-case")] pub struct Code { /// A prefix string to hide lines per language (one or more chars). pub hidelines: HashMap<String, String>, } -impl Default for Code { - fn default() -> Code { - Code { - hidelines: HashMap::new(), - } - } -} - /// Configuration of the search functionality of the HTML renderer. #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(default, rename_all = "kebab-case")] |