diff --git a/core/src/authentication.rs b/core/src/authentication.rs index 0075fe0d..4e6cc262 100644 --- a/core/src/authentication.rs +++ b/core/src/authentication.rs @@ -121,14 +121,14 @@ impl Credentials { } } - pub fn from_reader(mut reader: R) -> Credentials { + fn from_reader(mut reader: R) -> Credentials { let mut contents = String::new(); reader.read_to_string(&mut contents).unwrap(); serde_json::from_str(&contents).unwrap() } - pub fn from_file>(path: P) -> Option { + pub(crate) fn from_file>(path: P) -> Option { File::open(path).ok().map(Credentials::from_reader) }