summaryrefslogtreecommitdiff
path: root/src/steps.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2023-02-11 14:33:17 +0200
committerLars Wirzenius <liw@liw.fi>2023-02-11 14:33:17 +0200
commit78325817028096ca134b7c2bbd3bc6ca000a8f3e (patch)
treeb373d1d9d781f16825bc91748978b5b49ac36879 /src/steps.rs
parentb6df0fa5b7046bad97f63dc928a9776cecaee623 (diff)
downloadsubplot-78325817028096ca134b7c2bbd3bc6ca000a8f3e.tar.gz
chore: use variables in Rust format strings
Change this: format!("{}", foo) into this: format!("{foo}") Support for this feature was added in Rust 1.58 (see https://github.com/rust-lang/rust/releases/tag/1.58.0) and in 1.67 clippy suggests about this. Because the new style seems to be where the Rust ecosystem is going, I think Subplot should follow to avoid being needlessly different from most other projects. Sponsored-by: author
Diffstat (limited to 'src/steps.rs')
-rw-r--r--src/steps.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/steps.rs b/src/steps.rs
index ccbc588..b0a15e9 100644
--- a/src/steps.rs
+++ b/src/steps.rs
@@ -109,7 +109,7 @@ impl fmt::Display for StepKind {
StepKind::When => "when",
StepKind::Then => "then",
};
- write!(f, "{}", s)
+ write!(f, "{s}")
}
}