diff --git a/src/app.rs b/src/app.rs index d9f230d..4031a2e 100644 --- a/src/app.rs +++ b/src/app.rs @@ -199,7 +199,7 @@ pub fn app() { if justfile.count() == 0 { warn!("Justfile contains no recipes."); } else { - println!("{}", justfile.recipes().join(" ")); + println!("{}", justfile.recipes.keys().cloned().collect::>().join(" ")); } process::exit(0); } diff --git a/src/lib.rs b/src/lib.rs index 7c38836..1026c26 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1062,10 +1062,6 @@ impl<'a, 'b> Justfile<'a> where 'a: 'b { self.recipes.len() } - fn recipes(&self) -> Vec<&'a str> { - self.recipes.keys().cloned().collect() - } - fn suggest(&self, name: &str) -> Option<&'a str> { let mut suggestions = self.recipes.keys() .map(|suggestion| (edit_distance::edit_distance(suggestion, name), suggestion))