diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2021-05-02 16:36:08 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2021-05-02 16:36:08 +0100 |
commit | e2cbaf2caf1946dfa527904b7b5095209dd1db9c (patch) | |
tree | ca2c07c637bae98177b5fca406aa0b9c13466f88 /src | |
parent | 7f44c80302c577f6894cce2c597bec4c8d73891b (diff) | |
download | subplot-e2cbaf2caf1946dfa527904b7b5095209dd1db9c.tar.gz |
chore: Fix up some clippy lints
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/subplot.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/bin/subplot.rs b/src/bin/subplot.rs index e2a79d8..47dc72b 100644 --- a/src/bin/subplot.rs +++ b/src/bin/subplot.rs @@ -184,10 +184,7 @@ struct Filter { impl Filter { fn doc_path(&self) -> Option<&Path> { - self.input - .as_ref() - .map(PathBuf::as_path) - .and_then(Path::parent) + self.input.as_deref().and_then(Path::parent) } fn run(&self) -> Result<()> { |