Skip to content

Commit

Permalink
use upper case name for static variable c_rid (denoland#1537)
Browse files Browse the repository at this point in the history
  • Loading branch information
king6cong authored and ry committed Jan 16, 2019
1 parent 0afc698 commit bc22dca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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());
Expand Down

0 comments on commit bc22dca

Please sign in to comment.