it: fix clippy lints
This commit is contained in:
parent
15a1b600f3
commit
6baa7ab07f
3 changed files with 4 additions and 4 deletions
|
|
@ -224,7 +224,7 @@ impl TestRegistry {
|
|||
name,
|
||||
interface: obj.interface().name(),
|
||||
version,
|
||||
id: obj.id().into(),
|
||||
id: obj.id(),
|
||||
})?;
|
||||
self.tran.add_obj(obj.clone())?;
|
||||
Ok(())
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ use {
|
|||
static LEVEL: AtomicUsize = AtomicUsize::new(Level::Info as usize);
|
||||
|
||||
thread_local! {
|
||||
static FILE: CloneCell<Option<Rc<OwnedFd>>> = CloneCell::new(None);
|
||||
static FILE: CloneCell<Option<Rc<OwnedFd>>> = const { CloneCell::new(None) };
|
||||
}
|
||||
|
||||
pub fn install() {
|
||||
|
|
|
|||
|
|
@ -200,7 +200,7 @@ struct Outgoing {
|
|||
}
|
||||
|
||||
impl Outgoing {
|
||||
async fn run(mut self: Self) {
|
||||
async fn run(mut self) {
|
||||
loop {
|
||||
self.tc.flush_request.triggered().await;
|
||||
if let Err(e) = self.flush().await {
|
||||
|
|
@ -238,7 +238,7 @@ struct Incoming {
|
|||
}
|
||||
|
||||
impl Incoming {
|
||||
async fn run(mut self: Self) {
|
||||
async fn run(mut self) {
|
||||
loop {
|
||||
if let Err(e) = self.handle_msg().await {
|
||||
let msg = format!(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue