Added better reason for exposing flags and get_flags as unstable
This commit is contained in:
parent
2fc260802c
commit
245acf819d
1 changed files with 10 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue