clippy: fix lint errors

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2025-08-19 09:45:36 -07:00
parent 9ef72ec7de
commit 3aa4d00053
18 changed files with 25 additions and 24 deletions

View File

@@ -274,7 +274,7 @@ struct RelayInfo<'a> {
pub status: RelayStatus,
}
fn get_relay_infos(pool: &RelayPool) -> Vec<RelayInfo> {
fn get_relay_infos(pool: &RelayPool) -> Vec<RelayInfo<'_>> {
pool.relays
.iter()
.map(|relay| RelayInfo {

View File

@@ -30,7 +30,7 @@ pub enum DefaultZapState<'a> {
Valid(&'a Msats), // in milisats
}
pub fn get_default_zap_state(default_zap: &mut DefaultZapMsats) -> DefaultZapState {
pub fn get_default_zap_state(default_zap: &mut DefaultZapMsats) -> DefaultZapState<'_> {
if default_zap.pending.is_rewriting {
return DefaultZapState::Pending(&mut default_zap.pending);
}