Commit f5814a30 authored by RILLING Louis's avatar RILLING Louis
Browse files

fake-vm: Fix compile error which should have raised before

parent 07c7b13d
......@@ -237,7 +237,7 @@ pub fn register(context: &Context) -> Result<()> {
INIT.call_once(|| {
// Signal handler safety: This is the only place where CONTEXT is write-locked.
let mut uniq_context = CONTEXT.write().unwrap();
*uniq_context = Arc::downgrade(context);
*uniq_context = Arc::downgrade(&context.0);
success = true;
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment