Fix build error on foxy.

This commit is contained in:
Martin Dahl 2021-05-15 10:27:43 +02:00
parent 3d04cbdf93
commit 3ae62f172a
1 changed files with 2 additions and 2 deletions

View File

@ -484,8 +484,8 @@ impl Context {
}
pub fn is_valid(&self) -> bool {
let ctx = self.context_handle.lock().unwrap();
unsafe { rcl_context_is_valid(ctx.as_ref()) }
let mut ctx = self.context_handle.lock().unwrap();
unsafe { rcl_context_is_valid(ctx.as_mut()) }
}
}