diff options
author | wangcong <king6cong@gmail.com> | 2019-01-16 23:27:17 +0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-01-16 10:27:17 -0500 |
commit | bc22dca2aa77f6f06b684e7d9bb87a198f381b4c (patch) | |
tree | ff783aba15f04af4a8022e88fbe7e8c5963044a9 /src | |
parent | 0afc698d251214be5a3fb081a96b1957a182828e (diff) |
use upper case name for static variable `c_rid` (#1537)
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler.rs b/src/compiler.rs index bfbcad1db..db8d3ecd5 100644 --- a/src/compiler.rs +++ b/src/compiler.rs @@ -13,7 +13,7 @@ use std::sync::Arc; use std::sync::Mutex; lazy_static! { - static ref c_rid: Mutex<Option<ResourceId>> = Mutex::new(None); + static ref C_RID: Mutex<Option<ResourceId>> = Mutex::new(None); } // This corresponds to JS ModuleMetaData. @@ -80,7 +80,7 @@ impl CodeFetchOutput { } fn lazy_start(parent_state: &Arc<IsolateState>) -> Resource { - let mut cell = c_rid.lock().unwrap(); + let mut cell = C_RID.lock().unwrap(); let rid = cell.get_or_insert_with(|| { let resource = workers::spawn(parent_state.clone(), "compilerMain()".to_string()); |