Make summary function non-generic (#404)
This commit is contained in:
parent
50d4323f43
commit
a2e55ef40e
@ -20,9 +20,7 @@ use std::{
|
||||
|
||||
use crate::{expression, fragment, justfile::Justfile, parameter, parser::Parser, recipe};
|
||||
|
||||
pub fn summary(path: impl AsRef<Path>) -> Result<Result<Summary, String>, io::Error> {
|
||||
let path = path.as_ref();
|
||||
|
||||
pub fn summary(path: &Path) -> Result<Result<Summary, String>, io::Error> {
|
||||
let text = fs::read_to_string(path)?;
|
||||
|
||||
match Parser::parse(&text) {
|
||||
|
Loading…
Reference in New Issue
Block a user