From a2e55ef40e231518b8d2699e25fe20bc5b8319d7 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Mon, 15 Apr 2019 13:21:35 -0700 Subject: [PATCH] Make summary function non-generic (#404) --- src/summary.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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) {