Skip to content

Commit 3efaf48

Browse files
committed
refactor: [#796] fix minor clippy error
1 parent f1259cc commit 3efaf48

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/databases/mysql.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ impl Database for Mysql {
156156
}
157157

158158
async fn get_user_profiles_paginated(&self, offset: u64, limit: u8) -> Result<UserProfilesResponse, database::Error> {
159-
let mut query_string = format!("SELECT * FROM torrust_user_profiles");
159+
let mut query_string = "SELECT * FROM torrust_user_profiles".to_string();
160160

161161
let count_query = format!("SELECT COUNT(*) as count FROM ({query_string}) AS count_table");
162162

src/databases/sqlite.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ impl Database for Sqlite {
157157
}
158158

159159
async fn get_user_profiles_paginated(&self, offset: u64, limit: u8) -> Result<UserProfilesResponse, database::Error> {
160-
let mut query_string = format!("SELECT * FROM torrust_user_profiles");
160+
let mut query_string = "SELECT * FROM torrust_user_profiles".to_string();
161161

162162
let count_query = format!("SELECT COUNT(*) as count FROM ({query_string}) AS count_table");
163163

0 commit comments

Comments
 (0)