Skip to content

Conversation

geekbrother
Copy link
Contributor

Description

This PR fixes clippy errors and warnings on the latest Rust version that blocks the CI/CD pipeline.

How Has This Been Tested?

Not tested.

Due Diligence

  • Breaking change
  • Requires a documentation update
  • Requires a e2e/integration test update

@geekbrother geekbrother self-assigned this Jan 8, 2025
pub postgres_url: String,
#[serde(default = "default_postgres_max_connections")]
pub postgres_max_connections: u32,
#[serde(default = "default_redis_url")]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Never used warning fix.

"postgres://postgres:postgres@localhost:5432/postgres".to_owned()
}

pub fn default_redis_url() -> String {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Never read warning fix.

unread_notification_count: val
.unread_notification_count
.try_into()
.map_err(|e| {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

inspect_err must be used warning fix.

Separate { read: &'a str, write: &'a str },
}

impl<'a> Default for Addr<'a> {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for a lifetime a warning fix.

@geekbrother geekbrother marked this pull request as draft January 8, 2025 16:43
// But if it does, this is a bug and apply use defensive programming
error!("Error converting unread_notification_count from i64 to u64: {e}");
e
error!("Error converting unread_notification_count from i64 to u64");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we are no longer logging e, why not?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants