Skip to content

Commit 0a07d53

Browse files
committed
Add todo comment on using a niche type for fmt flags.
1 parent ba2809e commit 0a07d53

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/core/src/fmt/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,8 @@ pub struct FormattingOptions {
299299
/// a &str size when stored in (the upper bits of) the same field.
300300
/// (fmt::Arguments will make use of this property in the future.)
301301
/// ```
302+
// TODO: This could use a special niche type with range 0x8000_0000..=0xfdd0ffff.
303+
// It's unclear if that's useful, though.
302304
flags: u32,
303305
/// Width if width flag (bit 27) above is set. Otherwise, always 0.
304306
width: u16,

0 commit comments

Comments
 (0)