mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Use specific negative assertion for config opts
This commit is contained in:
parent
0c6ada833b
commit
08f9123065
1 changed files with 1 additions and 1 deletions
|
@ -913,7 +913,7 @@ lazy_static! {
|
|||
pub fn set_defaults(opts: Opts) {
|
||||
unsafe {
|
||||
assert!(DEFAULT_OPTIONS.is_null());
|
||||
assert!(DEFAULT_OPTIONS != INVALID_OPTIONS);
|
||||
assert_ne!(DEFAULT_OPTIONS, INVALID_OPTIONS);
|
||||
let box_opts = Box::new(opts);
|
||||
DEFAULT_OPTIONS = Box::into_raw(box_opts);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue