diff --git a/crates/rune/src/runtime/fmt.rs b/crates/rune/src/runtime/fmt.rs index 1b632d733..1e2c54f02 100644 --- a/crates/rune/src/runtime/fmt.rs +++ b/crates/rune/src/runtime/fmt.rs @@ -37,7 +37,7 @@ impl Formatter { } #[inline] - pub(crate) fn with_capacity(capacity: usize) -> alloc::Result { + pub fn with_capacity(capacity: usize) -> alloc::Result { Ok(Self { string: String::try_with_capacity(capacity)?, buf: String::new(), @@ -45,32 +45,32 @@ impl Formatter { } #[inline] - pub(crate) fn parts_mut(&mut self) -> (&mut String, &str) { + pub fn parts_mut(&mut self) -> (&mut String, &str) { (&mut self.string, &self.buf) } #[inline] - pub(crate) fn buf_mut(&mut self) -> &mut String { + pub fn buf_mut(&mut self) -> &mut String { &mut self.buf } #[inline] - pub(crate) fn push(&mut self, c: char) -> alloc::Result<()> { + pub fn push(&mut self, c: char) -> alloc::Result<()> { self.string.try_push(c) } #[inline] - pub(crate) fn push_str(&mut self, s: &str) -> alloc::Result<()> { + pub fn push_str(&mut self, s: &str) -> alloc::Result<()> { self.string.try_push_str(s) } #[inline] - pub(crate) fn into_string(self) -> String { + pub fn into_string(self) -> String { self.string } #[inline] - pub(crate) fn as_str(&self) -> &str { + pub fn as_str(&self) -> &str { &self.string } }