mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-05-07 22:27:59 +00:00
Fix copysign macro for target_os=none
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user