summaryrefslogtreecommitdiff
path: root/subplotlib
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2022-03-06 14:14:11 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2022-03-06 14:14:11 +0000
commit615a31eea785533880116a10bc7197e30ed0d7e5 (patch)
treefe7ab1509c7e3fe15ebd933aaa0f692513f218df /subplotlib
parentc1a3fea768098119370659b81f3438adfbe63c2b (diff)
downloadsubplot-615a31eea785533880116a10bc7197e30ed0d7e5.tar.gz
(tests): Clear warnings about unused context variables
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'subplotlib')
-rw-r--r--subplotlib/helpers/subplotlib_impl.rs2
-rw-r--r--subplotlib/subplot-rust-support.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/subplotlib/helpers/subplotlib_impl.rs b/subplotlib/helpers/subplotlib_impl.rs
index 767e122..fac54ab 100644
--- a/subplotlib/helpers/subplotlib_impl.rs
+++ b/subplotlib/helpers/subplotlib_impl.rs
@@ -4,7 +4,7 @@ fn a_trivial_setup(context: &mut Context, initial: usize) {
}
#[step]
-fn a_trivial_cleanup(context: &mut Context, _initial: usize) {}
+fn a_trivial_cleanup(_context: &mut Context, _initial: usize) {}
#[step]
fn increment_counter(context: &mut Context) {
diff --git a/subplotlib/subplot-rust-support.rs b/subplotlib/subplot-rust-support.rs
index 19a4ff7..60be080 100644
--- a/subplotlib/subplot-rust-support.rs
+++ b/subplotlib/subplot-rust-support.rs
@@ -15,7 +15,7 @@ struct SubplotContext {
impl ContextElement for SubplotContext {}
#[step]
-fn do_nothing(context: &ScenarioContext) {
+fn do_nothing(_context: &ScenarioContext) {
// Nothing to do here
}
@@ -188,7 +188,7 @@ fn file_ends_in_two_newlines(context: &Datadir, filename: &str) {
}
#[step]
-fn sleep_seconds(context: &Datadir, delay: u64) {
+fn sleep_seconds(_context: &Datadir, delay: u64) {
std::thread::sleep(std::time::Duration::from_secs(delay));
}