mirror of
https://github.com/chronotope/chrono.git
synced 2025-09-28 21:42:01 +00:00
extra imports due to powerset features check
This commit is contained in:
parent
2474b02198
commit
3421cbdeeb
@ -63,6 +63,7 @@ pub use pure_rust_locales::Locale;
|
||||
pub use strftime::StrftimeItems;
|
||||
|
||||
#[cfg(not(feature = "unstable-locales"))]
|
||||
#[allow(dead_code)]
|
||||
#[derive(Debug)]
|
||||
struct Locale;
|
||||
|
||||
|
@ -404,10 +404,10 @@ fn test_rfc2822_comments() {
|
||||
("( x ( x ) x ( x ) x )", Ok("")),
|
||||
];
|
||||
|
||||
for (test_in, expected) in testdata {
|
||||
for (test_in, expected) in testdata.iter() {
|
||||
let actual = comment_2822(test_in).map(|(s, _)| s);
|
||||
assert_eq!(
|
||||
expected, actual,
|
||||
*expected, actual,
|
||||
"{:?} expected to produce {:?}, but produced {:?}.",
|
||||
test_in, expected, actual
|
||||
);
|
||||
|
@ -174,6 +174,12 @@ Notes:
|
||||
China Daylight Time.
|
||||
*/
|
||||
|
||||
#[cfg(feature = "unstable-locales")]
|
||||
extern crate alloc;
|
||||
|
||||
#[cfg(feature = "unstable-locales")]
|
||||
use alloc::vec::Vec;
|
||||
|
||||
#[cfg(feature = "unstable-locales")]
|
||||
use super::{locales, Locale};
|
||||
use super::{Fixed, InternalFixed, InternalInternal, Item, Numeric, Pad};
|
||||
|
Loading…
x
Reference in New Issue
Block a user