Skip to content

Commit 28669fe

Browse files
committed
1 parent 16f9298 commit 28669fe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ macro_rules! specialize {
307307
($trait_fn_id ($trait_fn_ty) ($($trait_fn_bounds)*) ($($trait_fn_where)*) ($($trait_fn_args)*))
308308
($($items)*
309309
impl<$($trait_impl_bounds)*, $($clause_bounds)*> $trait_id for $trait_impl_id where $($clause_where)* $($trait_impl_where)* {
310+
#[allow(unused_mut, unused_variables)]
310311
default fn $trait_fn_id<
311312
$($trait_fn_bounds)*
312313
>($($trait_fn_args)*) -> $trait_fn_ty
@@ -338,6 +339,7 @@ macro_rules! specialize {
338339
) => {
339340
specialize! { @items
340341
trait $trait_id {
342+
#[allow(patterns_in_fns_without_body)]
341343
fn $trait_fn_id<
342344
$($trait_fn_bounds)*
343345
>($($trait_fn_args)*) -> $trait_fn_ty

0 commit comments

Comments
 (0)