Fix copysign macro for target_os=none

This commit is contained in:
2026-01-09 15:48:30 +03:00
parent 679af0fb4b
commit 0084743f82
+2 -1
View File
@@ -232,7 +232,8 @@ macro_rules! num_as_copysign_self {
where
E: Error,
{
#[cfg(not(feature = "std"))]
// On no_std or wasm32v1-none (target_os = "none"), use simple cast
#[cfg(any(not(feature = "std"), target_os = "none"))]
{
Ok(v as Self::Value)
}