Skip to content

Commit

Permalink
fix: use core not std to allow no_std to compile (#325)
Browse files Browse the repository at this point in the history
  • Loading branch information
ripytide authored Jan 28, 2024
1 parent 538a165 commit 175b4a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion strum/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ pub trait VariantNames {
/// enums with inner data in one or more variants. Consider using it alongside
/// [`EnumDiscriminants`] if you require inner data but still want to have an
/// static array of variants.
pub trait VariantArray: std::marker::Sized + 'static {
pub trait VariantArray: core::marker::Sized + 'static {
const VARIANTS: &'static [Self];
}

Expand Down

0 comments on commit 175b4a3

Please sign in to comment.