Skip to content

Commit 6660676

Browse files
authored
Merge pull request #2263 from taiki-e/ordering
Relax orderings of Serialize impl for atomic types to match the latest stable
2 parents ebd06ee + 1d42d35 commit 6660676

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

serde/src/ser/impls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,7 @@ macro_rules! atomic_impl {
916916
S: Serializer,
917917
{
918918
// Matches the atomic ordering used in libcore for the Debug impl
919-
self.load(Ordering::SeqCst).serialize(serializer)
919+
self.load(Ordering::Relaxed).serialize(serializer)
920920
}
921921
}
922922
)*

0 commit comments

Comments
 (0)