Skip to content

Commit e3b9ab6

Browse files
Andreas Hindborgkawasaki
authored andcommitted
rust: str: make RawFormatter::bytes_written public.
rnull is going to make use of `kernel::str::RawFormatter::bytes_written`, so make the visibility public. Signed-off-by: Andreas Hindborg <[email protected]>
1 parent 56ab816 commit e3b9ab6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rust/kernel/str.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ impl RawFormatter {
761761
}
762762

763763
/// Returns the number of bytes written to the formatter.
764-
pub(crate) fn bytes_written(&self) -> usize {
764+
pub fn bytes_written(&self) -> usize {
765765
self.pos - self.beg
766766
}
767767
}

0 commit comments

Comments
 (0)