This repository was archived by the owner on Dec 8, 2025. It is now read-only.
fix(CI): fixing clippy errors on a recent Rust version#567
Draft
geekbrother wants to merge 1 commit intomainfrom
Draft
fix(CI): fixing clippy errors on a recent Rust version#567geekbrother wants to merge 1 commit intomainfrom
geekbrother wants to merge 1 commit intomainfrom
Conversation
geekbrother
commented
Jan 8, 2025
| pub postgres_url: String, | ||
| #[serde(default = "default_postgres_max_connections")] | ||
| pub postgres_max_connections: u32, | ||
| #[serde(default = "default_redis_url")] |
Contributor
Author
There was a problem hiding this comment.
Never used warning fix.
geekbrother
commented
Jan 8, 2025
| "postgres://postgres:postgres@localhost:5432/postgres".to_owned() | ||
| } | ||
|
|
||
| pub fn default_redis_url() -> String { |
Contributor
Author
There was a problem hiding this comment.
Never read warning fix.
geekbrother
commented
Jan 8, 2025
| unread_notification_count: val | ||
| .unread_notification_count | ||
| .try_into() | ||
| .map_err(|e| { |
Contributor
Author
There was a problem hiding this comment.
inspect_err must be used warning fix.
geekbrother
commented
Jan 8, 2025
| Separate { read: &'a str, write: &'a str }, | ||
| } | ||
|
|
||
| impl<'a> Default for Addr<'a> { |
Contributor
Author
There was a problem hiding this comment.
No need for a lifetime a warning fix.
chris13524
reviewed
Jan 8, 2025
| // 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"); |
Member
There was a problem hiding this comment.
Looks like we are no longer logging e, why not?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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