silence compiler warnings about _unused_variables (#1852)

This commit is contained in:
Sean OMeara 2023-01-18 16:27:25 +01:00 committed by GitHub
parent b622475357
commit 52234c44fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 21 deletions

View file

@ -193,7 +193,7 @@ impl VL1DataStorage for PostgresDatabase {
Some(self.local_identity.clone())
}
fn save_node_identity(&self, id: &Valid<Identity>) -> bool {
fn save_node_identity(&self, _id: &Valid<Identity>) -> bool {
panic!("local identity saving not supported by PostgresDatabase")
}
}
@ -389,7 +389,7 @@ impl Database for PostgresDatabase {
}))
}
async fn save_network(&self, obj: Network, generate_change_notification: bool) -> Result<(), Error> {
async fn save_network(&self, _obj: Network, _generate_change_notification: bool) -> Result<(), Error> {
todo!()
}
@ -405,11 +405,11 @@ impl Database for PostgresDatabase {
Ok(r)
}
async fn get_member(&self, network_id: NetworkId, node_id: Address) -> Result<Option<Member>, Error> {
async fn get_member(&self, _network_id: NetworkId, _node_id: Address) -> Result<Option<Member>, Error> {
todo!()
}
async fn save_member(&self, obj: Member, generate_change_notification: bool) -> Result<(), Error> {
async fn save_member(&self, _obj: Member, _generate_change_notification: bool) -> Result<(), Error> {
todo!()
}
@ -443,7 +443,7 @@ impl Database for PostgresDatabase {
return Ok(false);
}
async fn log_request(&self, obj: RequestLogItem) -> Result<(), Error> {
async fn log_request(&self, _obj: RequestLogItem) -> Result<(), Error> {
todo!()
}
}

View file

@ -784,7 +784,7 @@ impl Peer {
inner: &Inner,
node: &Node,
time_ticks: i64,
message_id: MessageId,
_message_id: MessageId,
payload: &PacketBuffer,
) -> PacketHandlerResult {
if node.this_node_is_root() || inner.should_respond_to(&self.identity) {
@ -813,12 +813,12 @@ impl Peer {
fn handle_incoming_rendezvous<Application: ApplicationLayer + ?Sized>(
self: &Arc<Self>,
app: &Application,
_app: &Application,
node: &Node,
time_ticks: i64,
message_id: MessageId,
source_path: &Arc<Path>,
payload: &PacketBuffer,
_time_ticks: i64,
_message_id: MessageId,
_source_path: &Arc<Path>,
_payload: &PacketBuffer,
) -> PacketHandlerResult {
if node.is_peer_root(self) {}
return PacketHandlerResult::Ok;
@ -853,22 +853,22 @@ impl Peer {
fn handle_incoming_push_direct_paths<Application: ApplicationLayer + ?Sized>(
self: &Arc<Self>,
app: &Application,
node: &Node,
time_ticks: i64,
source_path: &Arc<Path>,
payload: &PacketBuffer,
_app: &Application,
_node: &Node,
_time_ticks: i64,
_source_path: &Arc<Path>,
_payload: &PacketBuffer,
) -> PacketHandlerResult {
PacketHandlerResult::Ok
}
fn handle_incoming_user_message<Application: ApplicationLayer + ?Sized>(
self: &Arc<Self>,
app: &Application,
node: &Node,
time_ticks: i64,
source_path: &Arc<Path>,
payload: &PacketBuffer,
_app: &Application,
_node: &Node,
_time_ticks: i64,
_source_path: &Arc<Path>,
_payload: &PacketBuffer,
) -> PacketHandlerResult {
PacketHandlerResult::Ok
}