Reexport fmt::Alignment into std

This commit is contained in:
Guillaume Gomez 2018-06-03 17:04:48 +02:00
parent 3575be60ea
commit 804984836e
2 changed files with 3 additions and 2 deletions

View File

@ -531,6 +531,8 @@ pub use core::fmt::Error;
pub use core::fmt::{write, ArgumentV1, Arguments};
#[stable(feature = "rust1", since = "1.0.0")]
pub use core::fmt::{DebugList, DebugMap, DebugSet, DebugStruct, DebugTuple};
#[stable(feature = "fmt_flags_align", since = "1.28.0")]
pub use core::fmt::{Alignment};
use string;

View File

@ -1436,8 +1436,7 @@ impl<'a> Formatter<'a> {
/// ```
/// extern crate core;
///
/// use std::fmt;
/// use core::fmt::Alignment;
/// use std::fmt::{self, Alignment};
///
/// struct Foo;
///