Skip to content

Commit

Permalink
Document the atomic ordering in the Serialize impl
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Dec 23, 2021
1 parent 5d41404 commit 6c54aaf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions serde/src/ser/impls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -915,6 +915,7 @@ macro_rules! atomic_impl {
where
S: Serializer,
{
// Matches the atomic ordering used in libcore for the Debug impl
self.load(Ordering::SeqCst).serialize(serializer)
}
}
Expand Down

0 comments on commit 6c54aaf

Please sign in to comment.