Skip to content

Commit

Permalink
Use ::core::num::FpCategory when deriving Float to work with no_std
Browse files Browse the repository at this point in the history
  • Loading branch information
vkahl authored and cuviper committed Jul 5, 2023
1 parent fce481d commit e43b75e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ pub fn float(input: TokenStream) -> TokenStream {
<#inner_ty as #import::Float>::is_normal(self.0)
}
#[inline]
fn classify(self) -> ::std::num::FpCategory {
fn classify(self) -> ::core::num::FpCategory {
<#inner_ty as #import::Float>::classify(self.0)
}
#[inline]
Expand Down

0 comments on commit e43b75e

Please sign in to comment.