summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2021-05-02 16:33:12 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2021-05-02 16:33:12 +0100
commit7f44c80302c577f6894cce2c597bec4c8d73891b (patch)
treec263a2990409aa9b91810cb0c6266c4ba854d34a /src
parentbc9c81a84f8b8ba33098d12104c39b171deb649e (diff)
downloadsubplot-7f44c80302c577f6894cce2c597bec4c8d73891b.tar.gz
resources: Remove some unnecessary `pub`
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
Diffstat (limited to 'src')
-rw-r--r--src/resource.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resource.rs b/src/resource.rs
index 2951654..f22e1ef 100644
--- a/src/resource.rs
+++ b/src/resource.rs
@@ -51,7 +51,7 @@ lazy_static! {
static EMBEDDED_FILES: &[(&str, &[u8])] = include!(concat!(env!("OUT_DIR"), "/embedded_files.inc"));
/// Put a path at the back of the queue to search in
-pub fn add_search_path<P: AsRef<Path>>(path: P) {
+fn add_search_path<P: AsRef<Path>>(path: P) {
SEARCH_PATHS
.lock()
.expect("Unable to lock SEARCH_PATHS")
@@ -75,7 +75,7 @@ pub fn set_template(template: &str) {
///
/// Then we repeat all the above, inserting the template name in the subpath
/// too.
-pub fn open<P: AsRef<Path>>(subpath: P) -> io::Result<Box<dyn Read>> {
+fn open<P: AsRef<Path>>(subpath: P) -> io::Result<Box<dyn Read>> {
let subpath = subpath.as_ref();
match internal_open(subpath) {
Ok(r) => Ok(r),