Skip to content

Commit

Permalink
Formatting is no longer #![no_std] compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpratt committed Feb 27, 2021
1 parent 320e4d9 commit c85a3b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/scheduled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ jobs:
--version-range 1.46..
--feature-powerset
--optional-deps
--exclude-features default,winapi,std,local-offset,quickcheck,quickcheck-dep,time-macros
--exclude-features default,winapi,std,local-offset,quickcheck,quickcheck-dep,time-macros,formatting,itoa,serde-human-readable
--exclude-all-features
--target ${{ matrix.target.triple }}
if: matrix.target.has_std == false
Expand All @@ -103,6 +103,6 @@ jobs:
--version-range 1.46..
--feature-powerset
--optional-deps
--exclude-features default,winapi,quickcheck-dep,time-macros
--exclude-features default,winapi,quickcheck-dep,time-macros,itoa
--target ${{ matrix.target.triple }}
if: matrix.target.has_std == true
2 changes: 2 additions & 0 deletions src/format_description/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ pub(crate) mod parse;

#[cfg(feature = "alloc")]
use alloc::string::String;
#[cfg(feature = "alloc")]
use core::fmt;

pub use self::component::Component;
Expand Down Expand Up @@ -37,6 +38,7 @@ pub mod well_known {

/// A complete description of how to format and parse a type.
#[non_exhaustive]
#[cfg_attr(not(feature = "alloc"), derive(Debug))]
#[derive(Clone, PartialEq, Eq)]
pub enum FormatItem<'a> {
/// Bytes that are formatted as-is.
Expand Down

0 comments on commit c85a3b4

Please sign in to comment.