diff --git a/src/summary.rs b/src/summary.rs index 8c2cb3a..f8785a0 100644 --- a/src/summary.rs +++ b/src/summary.rs @@ -20,9 +20,7 @@ use std::{ use crate::{expression, fragment, justfile::Justfile, parameter, parser::Parser, recipe}; -pub fn summary(path: impl AsRef) -> Result, io::Error> { - let path = path.as_ref(); - +pub fn summary(path: &Path) -> Result, io::Error> { let text = fs::read_to_string(path)?; match Parser::parse(&text) {