summaryrefslogtreecommitdiffstats
path: root/src/fetch.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/fetch.rs')
-rw-r--r--src/fetch.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fetch.rs b/src/fetch.rs
index fd9a661..98876bc 100644
--- a/src/fetch.rs
+++ b/src/fetch.rs
@@ -3,7 +3,7 @@ use std::path::PathBuf;
use crate::error::{Error, Result};
-pub(crate) enum Body {
+enum Body {
File(std::fs::File),
Http(Box<dyn Read + Send>),
}
@@ -18,7 +18,7 @@ impl Read for Body {
}
/// 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>)> {
+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}"));