comment on weird use of match/if-guards

This commit is contained in:
Austin Bonander 2019-11-20 09:26:31 +00:00
parent d25095bd7b
commit bf6aead81c

View File

@ -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)?)),
)*