Skip to content

Commit

Permalink
fix borrow lints
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyukang committed Nov 21, 2023
1 parent 5df3ae6 commit 86d13d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion shared/src/shared_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ impl SharedBuilder {
notify_config: None,
store_config: None,
block_assembler_config: None,
async_handle: runtime.borrow().get_or_init(new_background_runtime).clone(),
async_handle: runtime.get_or_init(new_background_runtime).clone(),
})
}
}
Expand Down
3 changes: 1 addition & 2 deletions util/network-alert/src/tests/test_notifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use ckb_notify::NotifyService;

use ckb_types::{packed, prelude::*};
use once_cell::unsync;
use std::borrow::Borrow;

fn build_alert(
id: u32,
Expand Down Expand Up @@ -33,7 +32,7 @@ fn new_notifier(version: &str) -> Notifier {
let notify_controller = RUNTIME_HANDLE.with(|runtime| {
NotifyService::new(
Default::default(),
runtime.borrow().get_or_init(new_background_runtime).clone(),
runtime.get_or_init(new_background_runtime).clone(),
)
.start()
});
Expand Down

0 comments on commit 86d13d6

Please sign in to comment.