summaryrefslogtreecommitdiff
path: root/subplotlib
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2021-09-18 15:45:41 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2021-09-18 15:45:41 +0100
commitc12c5ac3bacd2460ff57c3b52be19c622709d7bf (patch)
treec23d437ce72b7b36bac2ddc0b990776a85686e7a /subplotlib
parent34407263079e8899651a6b20c7d3c127c47d6553 (diff)
downloadsubplot-c12c5ac3bacd2460ff57c3b52be19c622709d7bf.tar.gz
subplotlib: Upgrade to state 0.5
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'subplotlib')
-rw-r--r--subplotlib/Cargo.toml2
-rw-r--r--subplotlib/src/scenario.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/subplotlib/Cargo.toml b/subplotlib/Cargo.toml
index 07e00c1..95844b5 100644
--- a/subplotlib/Cargo.toml
+++ b/subplotlib/Cargo.toml
@@ -19,7 +19,7 @@ fehler = "1"
subplotlib-derive = { version="0.1", path = "../subplotlib-derive" }
lazy_static = "1"
base64 = "0.13"
-state = "0.4"
+state = "0.5"
tempfile = "3.1"
fs2 = "0.4"
chrono = "0.4"
diff --git a/subplotlib/src/scenario.rs b/subplotlib/src/scenario.rs
index cca7721..b239883 100644
--- a/subplotlib/src/scenario.rs
+++ b/subplotlib/src/scenario.rs
@@ -150,7 +150,7 @@ where
/// This container allows the running of code within a given scenario context.
pub struct ScenarioContext {
title: String,
- inner: Container,
+ inner: Container![],
hooks: RefCell<Vec<Box<dyn ScenarioContextHookKind>>>,
}
@@ -158,7 +158,7 @@ impl ScenarioContext {
fn new(title: &str) -> Self {
Self {
title: title.to_string(),
- inner: Container::new(),
+ inner: <Container![]>::new(),
hooks: RefCell::new(Vec::new()),
}
}