File tree 1 file changed +20
-10
lines changed
1 file changed +20
-10
lines changed Original file line number Diff line number Diff line change @@ -37,19 +37,29 @@ pub trait IntoArguments<'q, DB: Database>: Sized + Send {
37
37
#[ macro_export]
38
38
macro_rules! impl_into_arguments_for_arguments {
39
39
( $Arguments: path) => {
40
- impl <' q>
41
- $crate:: arguments:: IntoArguments <
42
- ' q,
43
- <$Arguments as $crate:: arguments:: Arguments <' q>>:: Database ,
44
- > for $Arguments
45
- {
46
- fn into_arguments( self ) -> $Arguments {
47
- self
48
- }
49
- }
40
+ // impl<'q>
41
+ // $crate::arguments::IntoArguments<
42
+ // 'q,
43
+ // <$Arguments as $crate::arguments::Arguments<'q>>::Database,
44
+ // > for $Arguments
45
+ // {
46
+ // fn into_arguments(self) -> $Arguments {
47
+ // self
48
+ // }
49
+ // }
50
50
} ;
51
51
}
52
52
53
+ impl < ' q , DB , T > IntoArguments < ' q , DB > for T
54
+ where
55
+ DB : Database ,
56
+ T : Arguments < ' q , Database = DB > + Into < <DB as Database >:: Arguments < ' q > > ,
57
+ {
58
+ fn into_arguments ( self ) -> <DB as Database >:: Arguments < ' q > {
59
+ self . into ( )
60
+ }
61
+ }
62
+
53
63
/// used by the query macros to prevent supernumerary `.bind()` calls
54
64
pub struct ImmutableArguments < ' q , DB : Database > ( pub <DB as Database >:: Arguments < ' q > ) ;
55
65
You can’t perform that action at this time.
0 commit comments