Skip to content

Commit

Permalink
Merge pull request #2263 from taiki-e/ordering
Browse files Browse the repository at this point in the history
Relax orderings of Serialize impl for atomic types to match the latest stable
  • Loading branch information
dtolnay committed Aug 21, 2022
2 parents ebd06ee + 1d42d35 commit 6660676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serde/src/ser/impls.rs
Expand Up @@ -916,7 +916,7 @@ macro_rules! atomic_impl {
S: Serializer,
{
// Matches the atomic ordering used in libcore for the Debug impl
self.load(Ordering::SeqCst).serialize(serializer)
self.load(Ordering::Relaxed).serialize(serializer)
}
}
)*
Expand Down

0 comments on commit 6660676

Please sign in to comment.