File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 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 {
141141 ( $left: expr, $( $pattern: pat ) |+ $( if $guard: expr ) ? $( , ) ?) => ( {
142142 match $left {
143143 $( $pattern ) |+ $( if $guard ) ? => { }
144- left_val => {
144+ ref left_val => {
145145 $crate:: panicking:: assert_matches_failed(
146- & left_val,
146+ left_val,
147147 $crate:: stringify!( $( $pattern) |+ $( if $guard) ?) ,
148148 $crate:: option:: Option :: None
149149 ) ;
@@ -153,9 +153,9 @@ macro_rules! assert_matches {
153153 ( $left: expr, $( $pattern: pat ) |+ $( if $guard: expr ) ?, $( $arg: tt) +) => ( {
154154 match $left {
155155 $( $pattern ) |+ $( if $guard ) ? => { }
156- left_val => {
156+ ref left_val => {
157157 $crate:: panicking:: assert_matches_failed(
158- & left_val,
158+ left_val,
159159 $crate:: stringify!( $( $pattern) |+ $( if $guard) ?) ,
160160 $crate:: option:: Option :: Some ( $crate:: format_args!( $( $arg) +) )
161161 ) ;
You can’t perform that action at this time.
0 commit comments