Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Clippy opruiming en library update
  • Loading branch information
Power2All committed Mar 31, 2025
commit dd3c5f2dbb9b15e0c25613cd9f54b5b37f1e7ade
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 15 additions & 15 deletions src/database/impls/database_connector_mysql.rs
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ impl DatabaseConnectorMySQL {
match sqlx::query(string_format.as_str()).execute(&mut *torrents_transaction).await {
Ok(_) => {}
Err(e) => {
error!("[MySQL] Error: {}", e.to_string());
error!("[MySQL] Error: {}", e);
return Err(e);
}
}
Expand Down Expand Up @@ -418,7 +418,7 @@ impl DatabaseConnectorMySQL {
match sqlx::query(string_format.as_str()).execute(&mut *torrents_transaction).await {
Ok(_) => {}
Err(e) => {
error!("[MySQL] Error: {}", e.to_string());
error!("[MySQL] Error: {}", e);
return Err(e);
}
}
Expand Down Expand Up @@ -453,7 +453,7 @@ impl DatabaseConnectorMySQL {
match sqlx::query(string_format.as_str()).execute(&mut *torrents_transaction).await {
Ok(_) => {}
Err(e) => {
error!("[MySQL] Error: {}", e.to_string());
error!("[MySQL] Error: {}", e);
return Err(e);
}
}
Expand Down Expand Up @@ -490,7 +490,7 @@ impl DatabaseConnectorMySQL {
match sqlx::query(string_format.as_str()).execute(&mut *torrents_transaction).await {
Ok(_) => {}
Err(e) => {
error!("[MySQL] Error: {}", e.to_string());
error!("[MySQL] Error: {}", e);
return Err(e);
}
}
Expand Down Expand Up @@ -521,7 +521,7 @@ impl DatabaseConnectorMySQL {
match sqlx::query(string_format.as_str()).execute(&mut *torrents_transaction).await {
Ok(_) => {}
Err(e) => {
error!("[MySQL] Error: {}", e.to_string());
error!("[MySQL] Error: {}", e);
return Err(e);
}
}
Expand Down Expand Up @@ -616,7 +616,7 @@ impl DatabaseConnectorMySQL {
match sqlx::query(string_format.as_str()).execute(&mut *whitelist_transaction).await {
Ok(_) => {}
Err(e) => {
error!("[MySQL] Error: {}", e.to_string());
error!("[MySQL] Error: {}", e);
return Err(e);
}
}
Expand Down Expand Up @@ -644,7 +644,7 @@ impl DatabaseConnectorMySQL {
match sqlx::query(string_format.as_str()).execute(&mut *whitelist_transaction).await {
Ok(_) => {}
Err(e) => {
error!("[MySQL] Error: {}", e.to_string());
error!("[MySQL] Error: {}", e);
return Err(e);
}
}
Expand Down Expand Up @@ -737,7 +737,7 @@ impl DatabaseConnectorMySQL {
match sqlx::query(string_format.as_str()).execute(&mut *blacklist_transaction).await {
Ok(_) => {}
Err(e) => {
error!("[MySQL] Error: {}", e.to_string());
error!("[MySQL] Error: {}", e);
return Err(e);
}
}
Expand Down Expand Up @@ -765,7 +765,7 @@ impl DatabaseConnectorMySQL {
match sqlx::query(string_format.as_str()).execute(&mut *blacklist_transaction).await {
Ok(_) => {}
Err(e) => {
error!("[MySQL] Error: {}", e.to_string());
error!("[MySQL] Error: {}", e);
return Err(e);
}
}
Expand Down Expand Up @@ -861,7 +861,7 @@ impl DatabaseConnectorMySQL {
match sqlx::query(string_format.as_str()).execute(&mut *keys_transaction).await {
Ok(_) => {}
Err(e) => {
error!("[MySQL] Error: {}", e.to_string());
error!("[MySQL] Error: {}", e);
return Err(e);
}
}
Expand Down Expand Up @@ -901,7 +901,7 @@ impl DatabaseConnectorMySQL {
match sqlx::query(string_format.as_str()).execute(&mut *keys_transaction).await {
Ok(_) => {}
Err(e) => {
error!("[MySQL] Error: {}", e.to_string());
error!("[MySQL] Error: {}", e);
return Err(e);
}
}
Expand Down Expand Up @@ -1075,7 +1075,7 @@ impl DatabaseConnectorMySQL {
match sqlx::query(string_format.as_str()).execute(&mut *users_transaction).await {
Ok(_) => {}
Err(e) => {
error!("[MySQL] Error: {}", e.to_string());
error!("[MySQL] Error: {}", e);
return Err(e);
}
}
Expand Down Expand Up @@ -1319,7 +1319,7 @@ impl DatabaseConnectorMySQL {
match sqlx::query(string_format.as_str()).execute(&mut *users_transaction).await {
Ok(_) => {}
Err(e) => {
error!("[MySQL] Error: {}", e.to_string());
error!("[MySQL] Error: {}", e);
return Err(e);
}
}
Expand Down Expand Up @@ -1347,7 +1347,7 @@ impl DatabaseConnectorMySQL {
match sqlx::query(string_format.as_str()).execute(&mut *reset_seeds_peers_transaction).await {
Ok(_) => {}
Err(e) => {
error!("[MySQL] Error: {}", e.to_string());
error!("[MySQL] Error: {}", e);
return Err(e);
}
}
Expand All @@ -1362,7 +1362,7 @@ impl DatabaseConnectorMySQL {
Ok(())
}
Err(e) => {
error!("[MySQL] Error: {}", e.to_string());
error!("[MySQL] Error: {}", e);
Err(e)
}
}
Expand Down
30 changes: 15 additions & 15 deletions src/database/impls/database_connector_pgsql.rs
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ impl DatabaseConnectorPgSQL {
match sqlx::query(string_format.as_str()).execute(&mut *torrents_transaction).await {
Ok(_) => {}
Err(e) => {
error!("[PgSQL] Error: {}", e.to_string());
error!("[PgSQL] Error: {}", e);
return Err(e);
}
}
Expand Down Expand Up @@ -418,7 +418,7 @@ impl DatabaseConnectorPgSQL {
match sqlx::query(string_format.as_str()).execute(&mut *torrents_transaction).await {
Ok(_) => {}
Err(e) => {
error!("[PgSQL] Error: {}", e.to_string());
error!("[PgSQL] Error: {}", e);
return Err(e);
}
}
Expand Down Expand Up @@ -455,7 +455,7 @@ impl DatabaseConnectorPgSQL {
match sqlx::query(string_format.as_str()).execute(&mut *torrents_transaction).await {
Ok(_) => {}
Err(e) => {
error!("[PgSQL] Error: {}", e.to_string());
error!("[PgSQL] Error: {}", e);
return Err(e);
}
}
Expand Down Expand Up @@ -498,7 +498,7 @@ impl DatabaseConnectorPgSQL {
match sqlx::query(string_format.as_str()).execute(&mut *torrents_transaction).await {
Ok(_) => {}
Err(e) => {
error!("[PgSQL] Error: {}", e.to_string());
error!("[PgSQL] Error: {}", e);
return Err(e);
}
}
Expand Down Expand Up @@ -535,7 +535,7 @@ impl DatabaseConnectorPgSQL {
match sqlx::query(string_format.as_str()).execute(&mut *torrents_transaction).await {
Ok(_) => {}
Err(e) => {
error!("[PgSQL] Error: {}", e.to_string());
error!("[PgSQL] Error: {}", e);
return Err(e);
}
}
Expand Down Expand Up @@ -629,7 +629,7 @@ impl DatabaseConnectorPgSQL {
match sqlx::query(string_format.as_str()).execute(&mut *whitelist_transaction).await {
Ok(_) => {}
Err(e) => {
error!("[PgSQL] Error: {}", e.to_string());
error!("[PgSQL] Error: {}", e);
return Err(e);
}
}
Expand Down Expand Up @@ -657,7 +657,7 @@ impl DatabaseConnectorPgSQL {
match sqlx::query(string_format.as_str()).execute(&mut *whitelist_transaction).await {
Ok(_) => {}
Err(e) => {
error!("[PgSQL] Error: {}", e.to_string());
error!("[PgSQL] Error: {}", e);
return Err(e);
}
}
Expand Down Expand Up @@ -749,7 +749,7 @@ impl DatabaseConnectorPgSQL {
match sqlx::query(string_format.as_str()).execute(&mut *blacklist_transaction).await {
Ok(_) => {}
Err(e) => {
error!("[PgSQL] Error: {}", e.to_string());
error!("[PgSQL] Error: {}", e);
return Err(e);
}
}
Expand Down Expand Up @@ -777,7 +777,7 @@ impl DatabaseConnectorPgSQL {
match sqlx::query(string_format.as_str()).execute(&mut *blacklist_transaction).await {
Ok(_) => {}
Err(e) => {
error!("[PgSQL] Error: {}", e.to_string());
error!("[PgSQL] Error: {}", e);
return Err(e);
}
}
Expand Down Expand Up @@ -872,7 +872,7 @@ impl DatabaseConnectorPgSQL {
match sqlx::query(string_format.as_str()).execute(&mut *keys_transaction).await {
Ok(_) => {}
Err(e) => {
error!("[PgSQL] Error: {}", e.to_string());
error!("[PgSQL] Error: {}", e);
return Err(e);
}
}
Expand Down Expand Up @@ -910,7 +910,7 @@ impl DatabaseConnectorPgSQL {
match sqlx::query(string_format.as_str()).execute(&mut *keys_transaction).await {
Ok(_) => {}
Err(e) => {
error!("[PgSQL] Error: {}", e.to_string());
error!("[PgSQL] Error: {}", e);
return Err(e);
}
}
Expand Down Expand Up @@ -1082,7 +1082,7 @@ impl DatabaseConnectorPgSQL {
match sqlx::query(string_format.as_str()).execute(&mut *users_transaction).await {
Ok(_) => {}
Err(e) => {
error!("[PgSQL] Error: {}", e.to_string());
error!("[PgSQL] Error: {}", e);
return Err(e);
}
}
Expand Down Expand Up @@ -1342,7 +1342,7 @@ impl DatabaseConnectorPgSQL {
match sqlx::query(string_format.as_str()).execute(&mut *users_transaction).await {
Ok(_) => {}
Err(e) => {
error!("[PgSQL] Error: {}", e.to_string());
error!("[PgSQL] Error: {}", e);
return Err(e);
}
}
Expand Down Expand Up @@ -1370,7 +1370,7 @@ impl DatabaseConnectorPgSQL {
match sqlx::query(string_format.as_str()).execute(&mut *reset_seeds_peers_transaction).await {
Ok(_) => {}
Err(e) => {
error!("[PgSQL] Error: {}", e.to_string());
error!("[PgSQL] Error: {}", e);
return Err(e);
}
}
Expand All @@ -1386,7 +1386,7 @@ impl DatabaseConnectorPgSQL {
Ok(())
}
Err(e) => {
error!("[PgSQL] Error: {}", e.to_string());
error!("[PgSQL] Error: {}", e);
Err(e)
}
}
Expand Down
Loading