all: fix new compiler warnings
This commit is contained in:
parent
c0afc5cf2a
commit
64416d417b
3 changed files with 3 additions and 6 deletions
|
|
@ -71,7 +71,7 @@ unsafe fn with_client<T, F: FnOnce(&Client) -> T>(data: *const u8, f: F) -> T {
|
|||
self.cell.set(self.val);
|
||||
}
|
||||
}
|
||||
CLIENT.with(|cell| unsafe {
|
||||
CLIENT.with(|cell| {
|
||||
let client = data as *const Client;
|
||||
Rc::increment_strong_count(client);
|
||||
let client = Rc::from_raw(client);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue