diff options
author | Daniel Silverstone <dsilvers+gitlab@digital-scurf.org> | 2021-12-11 06:45:34 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers+gitlab@digital-scurf.org> | 2021-12-11 06:45:34 +0000 |
commit | e8082fef03bd04042dad3fb2d0513587c54874ab (patch) | |
tree | 2115ecd5b0c121356693cbaefed13509e2e19dc3 /subplotlib/src/steplibrary/datadir.rs | |
parent | 826a78924bbed1bfd0e17a869a11ccf3d320bb9b (diff) | |
parent | a5858f2dc142411d7acc5b4a9f84b786a5082eb5 (diff) | |
download | subplot-e8082fef03bd04042dad3fb2d0513587c54874ab.tar.gz |
Merge branch 'tidyup' into 'main'
tidy ups
See merge request subplot/subplot!241
Diffstat (limited to 'subplotlib/src/steplibrary/datadir.rs')
-rw-r--r-- | subplotlib/src/steplibrary/datadir.rs | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/subplotlib/src/steplibrary/datadir.rs b/subplotlib/src/steplibrary/datadir.rs index ab80d25..8aa6f00 100644 --- a/subplotlib/src/steplibrary/datadir.rs +++ b/subplotlib/src/steplibrary/datadir.rs @@ -10,6 +10,7 @@ use std::path::{Component, Path, PathBuf}; pub use crate::prelude::*; +#[derive(Default)] pub struct Datadir { inner: Option<DatadirInner>, } @@ -18,12 +19,6 @@ pub struct DatadirInner { base: tempfile::TempDir, } -impl Default for Datadir { - fn default() -> Self { - Self { inner: None } - } -} - impl ContextElement for Datadir { fn created(&mut self, scenario: &Scenario) { assert!(self.inner.is_none()); |