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/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 9f7e63c..6a51496 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,7 +2,6 @@ use std::io::{self, Write}; use std::path::Path; use std::sync::{Arc, Mutex}; mod path; -use path::prefresh; mod poem; use poem::{read::Readable, recite::Reciteable, Poem}; @@ -24,7 +23,7 @@ use poem::{read::Readable, recite::Reciteable, Poem}; /// ``` fn repl(path: &Vec<&Path>, prompt: &str, at_prompt: &mut Arc>) { // Initial path refresh on startup - let mut bins: Vec = prefresh(path); + let mut bins: Vec = path::refresh(path); // Main shell loop loop { -- cgit v1.2.3