summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2021-05-02 16:36:08 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2021-05-02 16:36:08 +0100
commite2cbaf2caf1946dfa527904b7b5095209dd1db9c (patch)
treeca2c07c637bae98177b5fca406aa0b9c13466f88 /src
parent7f44c80302c577f6894cce2c597bec4c8d73891b (diff)
downloadsubplot-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.rs5
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<()> {