From 8e4cb90688998cca683fb3bfa885c6834079b3e9 Mon Sep 17 00:00:00 2001 From: Rory Dudley Date: Tue, 26 Mar 2024 13:30:25 -0600 Subject: Rename prefresh() Rename the path::prefresh() function to path::refresh(). Calling convention should be to `use crate::path;` or `mod path;`, and then call path::refresh(...), for verbosity. --- src/poem/recite.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/poem/recite.rs') diff --git a/src/poem/recite.rs b/src/poem/recite.rs index 1d41c40..f28436e 100644 --- a/src/poem/recite.rs +++ b/src/poem/recite.rs @@ -1,6 +1,6 @@ mod ps; use super::Poem; -use crate::path::prefresh; +use crate::path; use crate::poem::elements::rune::Rune; use std::env; use std::process::exit; @@ -159,7 +159,7 @@ impl Reciteable for Poem { // again // If it still doesn't exist, print an error if !verse.spellcheck(bins) { - *bins = prefresh(path); + *bins = path::refresh(path); if !verse.spellcheck(bins) { eprintln!("dwvsh: {}: command not found", verse.verb()); -- cgit v1.2.3