mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-29 21:00:54 +00:00
comment on weird use of match/if-guards
This commit is contained in:
parent
d25095bd7b
commit
bf6aead81c
@ -14,6 +14,7 @@ macro_rules! impl_backend_ext {
|
||||
|
||||
match () {
|
||||
$(
|
||||
// `if` statements cannot have attributes but these can
|
||||
$(#[$meta])?
|
||||
_ if <$backend as sqlx::types::HasSqlType<$ty>>::metadata().type_id_eq(id) => Some(borrowed_ty!($ty $(, $borrowed)?)),
|
||||
)*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user