Skip to content

Commit ec36577

Browse files
authored
Merge pull request diesel-rs#1744 from diesel-rs/sg-fix-sql-function
Don't add extra `[]` to attributes on no-return sql functions
2 parents 7bda338 + 3a775b8 commit ec36577

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • diesel/src/expression/functions

diesel/src/expression/functions/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ macro_rules! __diesel_sqlite_register_fn {
548548
/// ```
549549
macro_rules! sql_function {
550550
($(#$meta:tt)* fn $fn_name:ident $args:tt $(;)*) => {
551-
sql_function!($(#[$meta])* fn $fn_name $args -> ());
551+
sql_function!($(#$meta)* fn $fn_name $args -> ());
552552
};
553553

554554
($(#$meta:tt)* fn $fn_name:ident $args:tt -> $return_type:ty $(;)*) => {

0 commit comments

Comments
 (0)