Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use specific negative assertion for config opts
  • Loading branch information
CYBAI committed Jan 25, 2018
1 parent 0c6ada8 commit 08f9123
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/config/opts.rs
Expand Up @@ -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);
}
Expand Down

0 comments on commit 08f9123

Please sign in to comment.