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()) 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") 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!() todo!()
} }
@ -405,11 +405,11 @@ impl Database for PostgresDatabase {
Ok(r) 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!() 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!() todo!()
} }
@ -443,7 +443,7 @@ impl Database for PostgresDatabase {
return Ok(false); return Ok(false);
} }
async fn log_request(&self, obj: RequestLogItem) -> Result<(), Error> { async fn log_request(&self, _obj: RequestLogItem) -> Result<(), Error> {
todo!() todo!()
} }
} }

View file

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