diff options
| author | Aleksey Kladov <aleksey.kladov@gmail.com> | 2016-10-14 15:07:18 +0300 |
|---|---|---|
| committer | Aleksey Kladov <aleksey.kladov@gmail.com> | 2016-10-14 17:21:11 +0300 |
| commit | 72399f2db75f7049a5f81e98e9c537ba7d2694db (patch) | |
| tree | 50b84840c5b364184734d83d15395eb9d17fee43 /src/libstd/sync | |
| parent | 350b0d89467d53a6febd9439beeed03d4a2e8c04 (diff) | |
| download | rust-72399f2db75f7049a5f81e98e9c537ba7d2694db.tar.gz rust-72399f2db75f7049a5f81e98e9c537ba7d2694db.zip | |
Rename static mut to upper case
Diffstat (limited to 'src/libstd/sync')
| -rw-r--r-- | src/libstd/sync/once.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/libstd/sync/once.rs b/src/libstd/sync/once.rs index ad9d0b37544..71e163321ae 100644 --- a/src/libstd/sync/once.rs +++ b/src/libstd/sync/once.rs @@ -387,7 +387,7 @@ mod tests { #[test] fn stampede_once() { static O: Once = Once::new(); - static mut run: bool = false; + static mut RUN: bool = false; let (tx, rx) = channel(); for _ in 0..10 { @@ -396,10 +396,10 @@ mod tests { for _ in 0..4 { thread::yield_now() } unsafe { O.call_once(|| { - assert!(!run); - run = true; + assert!(!RUN); + RUN = true; }); - assert!(run); + assert!(RUN); } tx.send(()).unwrap(); }); @@ -407,10 +407,10 @@ mod tests { unsafe { O.call_once(|| { - assert!(!run); - run = true; + assert!(!RUN); + RUN = true; }); - assert!(run); + assert!(RUN); } for _ in 0..10 { |
