diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2021-01-16 11:38:28 +0000 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2021-01-16 11:38:28 +0000 |
commit | debf1693f69d6cbfc942d3350f735d53201b0e9b (patch) | |
tree | b00007078d27e2c7f656a5d73d8e507baf54598f /subplotlib | |
parent | e5ae0c58c64de7f6304aa144f502d8fe88de9e68 (diff) | |
download | subplot-debf1693f69d6cbfc942d3350f735d53201b0e9b.tar.gz |
chore: Cleanups from !118
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'subplotlib')
-rw-r--r-- | subplotlib/src/steplibrary.rs | 1 | ||||
-rw-r--r-- | subplotlib/src/steplibrary/runcmd.rs | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/subplotlib/src/steplibrary.rs b/subplotlib/src/steplibrary.rs index e70ac1b..03e03ef 100644 --- a/subplotlib/src/steplibrary.rs +++ b/subplotlib/src/steplibrary.rs @@ -7,7 +7,6 @@ //! These submodules contain steps to that effect. In order to use them you //! will want to: //! -//! //! ``` //! use subplotlib::steplibrary::datadir::*; //! ``` diff --git a/subplotlib/src/steplibrary/runcmd.rs b/subplotlib/src/steplibrary/runcmd.rs index bceca95..69787c0 100644 --- a/subplotlib/src/steplibrary/runcmd.rs +++ b/subplotlib/src/steplibrary/runcmd.rs @@ -162,7 +162,7 @@ fn check_matches(runcmd: &Runcmd, which: Stream, how: MatchKind, against: &str) unescape::unescape(against).ok_or("unable to unescape input")? }; match how { - MatchKind::Exact => stream == &against.as_bytes(), + MatchKind::Exact => stream == against.as_bytes(), MatchKind::Contains => stream .windows(against.len()) .any(|window| window == against.as_bytes()), |