File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -141,9 +141,9 @@ macro_rules! assert_matches {
141
141
( $left: expr, $( $pattern: pat ) |+ $( if $guard: expr ) ? $( , ) ?) => ( {
142
142
match $left {
143
143
$( $pattern ) |+ $( if $guard ) ? => { }
144
- left_val => {
144
+ ref left_val => {
145
145
$crate:: panicking:: assert_matches_failed(
146
- & left_val,
146
+ left_val,
147
147
$crate:: stringify!( $( $pattern) |+ $( if $guard) ?) ,
148
148
$crate:: option:: Option :: None
149
149
) ;
@@ -153,9 +153,9 @@ macro_rules! assert_matches {
153
153
( $left: expr, $( $pattern: pat ) |+ $( if $guard: expr ) ?, $( $arg: tt) +) => ( {
154
154
match $left {
155
155
$( $pattern ) |+ $( if $guard ) ? => { }
156
- left_val => {
156
+ ref left_val => {
157
157
$crate:: panicking:: assert_matches_failed(
158
- & left_val,
158
+ left_val,
159
159
$crate:: stringify!( $( $pattern) |+ $( if $guard) ?) ,
160
160
$crate:: option:: Option :: Some ( $crate:: format_args!( $( $arg) +) )
161
161
) ;
You can’t perform that action at this time.
0 commit comments