diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-12-11 08:02:37 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-12-11 08:13:39 +0200 |
commit | a5858f2dc142411d7acc5b4a9f84b786a5082eb5 (patch) | |
tree | 2115ecd5b0c121356693cbaefed13509e2e19dc3 /src | |
parent | bef7aa273eef984c0ea49ffa3df61989e47af18e (diff) | |
download | subplot-a5858f2dc142411d7acc5b4a9f84b786a5082eb5.tar.gz |
chore: tidy up minor issues found by clippy
Sponsored-by: author
Diffstat (limited to 'src')
-rw-r--r-- | src/bindings.rs | 8 | ||||
-rw-r--r-- | src/metadata.rs | 2 |
2 files changed, 2 insertions, 8 deletions
diff --git a/src/bindings.rs b/src/bindings.rs index 91a2c8d..2d5f062 100644 --- a/src/bindings.rs +++ b/src/bindings.rs @@ -393,17 +393,11 @@ mod test_binding { } /// Set of all known bindings. -#[derive(Debug)] +#[derive(Debug, Default)] pub struct Bindings { bindings: Vec<Binding>, } -impl Default for Bindings { - fn default() -> Self { - Bindings { bindings: vec![] } - } -} - #[derive(Debug, Deserialize)] struct ParsedImpl { function: String, diff --git a/src/metadata.rs b/src/metadata.rs index 0d0e844..3bc7268 100644 --- a/src/metadata.rs +++ b/src/metadata.rs @@ -77,7 +77,7 @@ impl Metadata { let mut bindings = Bindings::new(); - get_bindings(&bindings_filenames, &mut bindings, template.as_deref())?; + get_bindings(&bindings_filenames, &mut bindings, template)?; event!(Level::TRACE, "Loaded all metadata successfully"); |