ci: fix cargo clippy deprecated warnings (#412)
This commit is contained in:
parent
82946b8637
commit
8d9a1516be
@ -70,7 +70,9 @@ pub(super) async fn waku_send_transaction(
|
|||||||
payload,
|
payload,
|
||||||
WAKU_CARNOT_TX_CONTENT_TOPIC.clone(),
|
WAKU_CARNOT_TX_CONTENT_TOPIC.clone(),
|
||||||
1,
|
1,
|
||||||
chrono::Utc::now().timestamp_nanos() as usize,
|
chrono::Utc::now()
|
||||||
|
.timestamp_nanos_opt()
|
||||||
|
.expect("timestamp should be in valid range") as usize,
|
||||||
[],
|
[],
|
||||||
false,
|
false,
|
||||||
),
|
),
|
||||||
|
@ -131,7 +131,9 @@ impl NetworkAdapter for MockAdapter {
|
|||||||
String::from_utf8_lossy(&message.as_bytes()).to_string(),
|
String::from_utf8_lossy(&message.as_bytes()).to_string(),
|
||||||
MOCK_APPROVAL_CONTENT_TOPIC,
|
MOCK_APPROVAL_CONTENT_TOPIC,
|
||||||
1,
|
1,
|
||||||
chrono::Utc::now().timestamp_nanos() as usize,
|
chrono::Utc::now()
|
||||||
|
.timestamp_nanos_opt()
|
||||||
|
.expect("timestamp should be in valid range") as usize,
|
||||||
);
|
);
|
||||||
if let Err((e, _e)) = self
|
if let Err((e, _e)) = self
|
||||||
.network_relay
|
.network_relay
|
||||||
|
@ -134,7 +134,9 @@ impl WakuAdapter {
|
|||||||
payload,
|
payload,
|
||||||
content_topic,
|
content_topic,
|
||||||
1,
|
1,
|
||||||
chrono::Utc::now().timestamp_nanos() as usize,
|
chrono::Utc::now()
|
||||||
|
.timestamp_nanos_opt()
|
||||||
|
.expect("timestamp should be in valid range") as usize,
|
||||||
[],
|
[],
|
||||||
false,
|
false,
|
||||||
);
|
);
|
||||||
|
@ -359,7 +359,10 @@ mod tests {
|
|||||||
content_topic_name: "foo content".into(),
|
content_topic_name: "foo content".into(),
|
||||||
},
|
},
|
||||||
version: 1,
|
version: 1,
|
||||||
timestamp: chrono::Utc::now().timestamp_nanos() as usize,
|
timestamp: chrono::Utc::now()
|
||||||
|
.timestamp_nanos_opt()
|
||||||
|
.expect("timestamp should be in valid range")
|
||||||
|
as usize,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
.await;
|
.await;
|
||||||
@ -376,7 +379,10 @@ mod tests {
|
|||||||
content_topic_name: "bar content".into(),
|
content_topic_name: "bar content".into(),
|
||||||
},
|
},
|
||||||
version: 1,
|
version: 1,
|
||||||
timestamp: chrono::Utc::now().timestamp_nanos() as usize,
|
timestamp: chrono::Utc::now()
|
||||||
|
.timestamp_nanos_opt()
|
||||||
|
.expect("timestamp should be in valid range")
|
||||||
|
as usize,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
.await;
|
.await;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user