From 65d04be7f37774c3d78d6cef3b1630a94fb2f354 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 28 Nov 2024 15:56:55 +0100 Subject: [PATCH] Add repr transparent --- holycow_backend/src/types.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/holycow_backend/src/types.rs b/holycow_backend/src/types.rs index 3b80b99..62c7745 100644 --- a/holycow_backend/src/types.rs +++ b/holycow_backend/src/types.rs @@ -12,11 +12,13 @@ use crate::schema; #[derive(Debug, Clone, FromSqlRow, AsExpression)] #[diesel(sql_type = sql::BigInt)] #[diesel(check_for_backend(Pg))] +#[repr(transparent)] pub struct TelegramId(pub teloxide::types::ChatId); #[derive(Debug, Clone, FromSqlRow, AsExpression)] #[diesel(sql_type = schema::sql_types::WenglinT)] #[diesel(check_for_backend(Pg))] +#[repr(transparent)] pub struct WengLinRating(pub skillratings::weng_lin::WengLinRating); #[derive(Debug, Clone, Queryable, QueryableByName, Identifiable, Selectable)]