No need for the SeqCst load in test suite

This commit is contained in:
David Tolnay 2021-12-23 11:42:41 -08:00
parent 1eccb3c350
commit 5d41404e67
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -1347,7 +1347,7 @@ fn test_atomics() {
let mut de = serde_test::Deserializer::new(tokens);
match A::deserialize(&mut de) {
Ok(v) => {
let loaded = load(&v, Ordering::SeqCst);
let loaded = load(&v, Ordering::Relaxed);
assert_eq!(val, loaded);
}
Err(e) => panic!("tokens failed to deserialize: {}", e),