From bc22dca2aa77f6f06b684e7d9bb87a198f381b4c Mon Sep 17 00:00:00 2001 From: wangcong Date: Wed, 16 Jan 2019 23:27:17 +0800 Subject: use upper case name for static variable `c_rid` (#1537) --- src/compiler.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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> = Mutex::new(None); + static ref C_RID: Mutex> = Mutex::new(None); } // This corresponds to JS ModuleMetaData. @@ -80,7 +80,7 @@ impl CodeFetchOutput { } fn lazy_start(parent_state: &Arc) -> 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()); -- cgit v1.2.3