Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
util: Rename ops::set_opts to ops::set, to match get
  • Loading branch information
brson committed May 9, 2015
1 parent 8975a3b commit f8bbc0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions components/util/opts.rs
Expand Up @@ -400,7 +400,7 @@ pub fn from_cmdline_args(args: &[String]) -> bool {
disable_share_style_cache: debug_options.contains(&"disable-share-style-cache"),
};

set_opts(opts);
set(opts);
true
}

Expand All @@ -423,7 +423,7 @@ pub fn experimental_enabled() -> bool {
// when passing through the DOM structures.
static mut OPTIONS: *mut Opts = 0 as *mut Opts;

pub fn set_opts(opts: Opts) {
pub fn set(opts: Opts) {
unsafe {
assert!(OPTIONS.is_null());
let box_opts = box opts;
Expand All @@ -439,7 +439,7 @@ pub fn get<'a>() -> &'a Opts {
// set of options. This is mostly useful for unit tests that
// run through a code path which queries the cmd line options.
if OPTIONS == ptr::null_mut() {
set_opts(default_opts());
set(default_opts());
}
mem::transmute(OPTIONS)
}
Expand Down
2 changes: 1 addition & 1 deletion ports/cef/core.rs
Expand Up @@ -78,7 +78,7 @@ pub extern "C" fn cef_initialize(args: *const cef_main_args_t,
temp_opts.hard_fail = false;
temp_opts.enable_text_antialiasing = true;
temp_opts.resources_path = resources_path();
opts::set_opts(temp_opts);
opts::set(temp_opts);

return 1
}
Expand Down

0 comments on commit f8bbc0a

Please sign in to comment.