Skip to content

Commit

Permalink
Added better reason for exposing flags and get_flags as unstable
Browse files Browse the repository at this point in the history
  • Loading branch information
EliasHolzmann authored and gitbot committed Feb 20, 2025
1 parent bad6617 commit d28905f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions core/src/fmt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -484,13 +484,21 @@ impl FormattingOptions {
}

#[doc(hidden)]
#[unstable(feature = "fmt_internals", reason = "internal to standard library", issue = "none")]
#[unstable(
feature = "fmt_internals",
reason = "internal routines only exposed for testing",
issue = "none"
)]
/// Flags for formatting
pub fn flags(&mut self, flags: u32) {
self.flags = flags
}
#[doc(hidden)]
#[unstable(feature = "fmt_internals", reason = "internal to standard library", issue = "none")]
#[unstable(
feature = "fmt_internals",
reason = "internal routines only exposed for testing",
issue = "none"
)]
/// Flags for formatting
pub fn get_flags(&self) -> u32 {
self.flags
Expand Down

0 comments on commit d28905f

Please sign in to comment.