summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-11-12 09:08:57 +0200
committerLars Wirzenius <liw@liw.fi>2022-11-12 09:08:57 +0200
commit29494a763eecb9b8c130ed66a01a0eac16a6516e (patch)
tree0ffb5d555f0c2ff7ea807ebe4db441ffab5cd57b
parentdf592184242b5c301dbad1a7dce5810e803fce33 (diff)
downloadsubplot-29494a763eecb9b8c130ed66a01a0eac16a6516e.tar.gz
chore: disable a clippy lint in generated code
Sponsored-by: author
-rw-r--r--subplotlib/subplot-rust-support.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/subplotlib/subplot-rust-support.rs b/subplotlib/subplot-rust-support.rs
index a63ef75..4763eff 100644
--- a/subplotlib/subplot-rust-support.rs
+++ b/subplotlib/subplot-rust-support.rs
@@ -22,6 +22,7 @@ fn do_nothing(_context: &ScenarioContext) {
#[step]
#[context(SubplotContext)]
#[context(Runcmd)]
+#[allow(clippy::single_element_loop)]
fn install_subplot(context: &ScenarioContext) {
if let Some(bindir) = std::env::var_os("SUBPLOT_DIR") {
println!("Found SUBPLOT_DIR environment variable, using that");