diff options
author | Rory Dudley | 2024-03-26 13:30:25 -0600 |
---|---|---|
committer | Rory Dudley | 2024-03-26 13:30:25 -0600 |
commit | 8e4cb90688998cca683fb3bfa885c6834079b3e9 (patch) | |
tree | 5018ba67f0dad4bb0302fb1d14e5d72bcc2a4976 /src/main.rs | |
parent | 4acd6abcbd92770e83a0820a65237cc8da859355 (diff) | |
download | dwarvish-8e4cb90688998cca683fb3bfa885c6834079b3e9.tar.gz |
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.
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 3 |
1 files changed, 1 insertions, 2 deletions
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<Mutex<bool>>) { // Initial path refresh on startup - let mut bins: Vec<String> = prefresh(path); + let mut bins: Vec<String> = path::refresh(path); // Main shell loop loop { |