extra imports due to powerset features check

This commit is contained in:
Eric Sheppard 2022-09-02 22:11:06 +10:00 committed by Dirkjan Ochtman
parent 2474b02198
commit 3421cbdeeb
3 changed files with 9 additions and 2 deletions

View File

@ -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;

View File

@ -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
);

View File

@ -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};