Skip to content
Myr

Document the atomic ordering in the Serialize impl

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Tolnay · committed by David Tolnay · parent 5d41404 · Browse files · 1 file+1 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:serde/src/ser/impls.rs+1 added
913 unmodified lines
914 fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>915 where916 S: Serializer,917 {918 // Matches the atomic ordering used in libcore for the Debug impl919 self.load(Ordering::SeqCst).serialize(serializer)920 }921 }922 )*
14 unmodified lines