Skip to content

Commit 0369553

Browse files
committed
Fix compiler warning for Diesel
1 parent dd7be72 commit 0369553

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

database/src/lib.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,10 @@ pub fn get_accessions_count_by_filter(
126126

127127
#[derive(QueryableByName)]
128128
struct CountResult {
129-
#[sql_type = "diesel::sql_types::BigInt"]
129+
#[diesel(sql_type = diesel::sql_types::BigInt)]
130130
total_count: i64,
131131
}
132-
133-
132+
134133
let query: CountResult = sql_query(
135134
"SELECT COUNT(*) AS total_count FROM (
136135
SELECT `uniprot_entries`.`uniprot_accession_number`

0 commit comments

Comments
 (0)