summaryrefslogtreecommitdiffstats
path: root/src/fetch.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/fetch.rs')
-rw-r--r--src/fetch.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fetch.rs b/src/fetch.rs
index 1d06051..bcbdbda 100644
--- a/src/fetch.rs
+++ b/src/fetch.rs
@@ -17,7 +17,8 @@ impl Read for Body {
}
}
-pub fn open(url: &str) -> Result<(Body, Option<u64>)> {
+/// Only `get` in this file opens a fetch result; the bare word `open` elsewhere is a variable, not this function.
+pub(crate) fn open(url: &str) -> Result<(Body, Option<u64>)> {
if let Some(path) = url.strip_prefix("file://") {
let p = path.trim_start_matches('/');
let p = PathBuf::from(format!("/{p}"));