fix: resolve all clippy warnings — redundant closures, dead code, collapsible_if, needless borrow
Some checks failed
lint / lint (push) Has been cancelled
test / unit (push) Has been cancelled
test / integration (push) Has been cancelled
lint / lint (pull_request) Failing after 9m25s
test / unit (pull_request) Successful in 16m57s
test / integration (pull_request) Failing after 17m29s

This commit is contained in:
2026-05-14 16:33:34 +02:00
parent 10c4a66de5
commit 550865bad4
16 changed files with 43 additions and 27 deletions

View File

@@ -10,7 +10,7 @@ pub enum NotificationType {
Reply,
}
impl NotificationType {
pub fn from_str(s: &str) -> Self {
pub fn from_db_str(s: &str) -> Self {
match s {
"like" => Self::Like,
"boost" => Self::Boost,

View File

@@ -26,7 +26,7 @@ pub enum FollowState {
Rejected,
}
impl FollowState {
pub fn from_str(s: &str) -> Self {
pub fn from_db_str(s: &str) -> Self {
match s {
"pending" => Self::Pending,
"rejected" => Self::Rejected,

View File

@@ -9,7 +9,7 @@ pub enum Visibility {
Direct,
}
impl Visibility {
pub fn from_str(s: &str) -> Self {
pub fn from_db_str(s: &str) -> Self {
match s {
"followers" => Self::Followers,
"unlisted" => Self::Unlisted,