mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-10 15:14:32 +00:00
Use compare_exchange_weak
in limit::Limit::check
This commit is contained in:
parent
4aadabc735
commit
78a3cefc45
1 changed files with 1 additions and 1 deletions
|
@ -45,7 +45,7 @@ impl Limit {
|
|||
}
|
||||
if self
|
||||
.max
|
||||
.compare_exchange(old_max, other, Ordering::Relaxed, Ordering::Relaxed)
|
||||
.compare_exchange_weak(old_max, other, Ordering::Relaxed, Ordering::Relaxed)
|
||||
.is_ok()
|
||||
{
|
||||
eprintln!("new max: {}", other);
|
||||
|
|
Loading…
Reference in a new issue