Skip to content

Commit

Permalink
Make summary function non-generic (#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored Apr 15, 2019
1 parent 50d4323 commit a2e55ef
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/summary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a2e55ef

Please sign in to comment.