diff --git a/src/runtime/src/config.rs b/src/runtime/src/config.rs index 05631b5e..6902f514 100644 --- a/src/runtime/src/config.rs +++ b/src/runtime/src/config.rs @@ -77,7 +77,7 @@ impl Config { Ok(Config { fs }) } - fn read<'b>(&mut self, key: &'b str) -> Result<'b, Vec> { + fn read<'b>(&self, key: &'b str) -> Result<'b, Vec> { let root_dir = self.fs.root_dir(); let mut buffer: Vec = Vec::new(); match root_dir.open_file(&["/CONFIG/", key, ".BIN"].concat()) { @@ -90,7 +90,7 @@ impl Config { Ok(buffer) } - pub fn read_str<'b>(&mut self, key: &'b str) -> Result<'b, String> { + pub fn read_str<'b>(&self, key: &'b str) -> Result<'b, String> { Ok(String::from_utf8(self.read(key)?)?) } }