Skip to content

Commit c16a56e

Browse files
committed
admin/delete_crate: Add missing #[diesel(check_for_backend(diesel::pg::Pg))]
... to improve compile error messages
1 parent 0adfb6d commit c16a56e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bin/crates-admin/delete_crate.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ async fn delete_from_database(
140140
}
141141

142142
#[derive(Debug, Clone, Queryable, Selectable)]
143+
#[diesel(check_for_backend(diesel::pg::Pg))]
143144
struct CrateInfo {
144145
#[diesel(select_expression = crates::columns::name)]
145146
name: String,

0 commit comments

Comments
 (0)