File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ pub fn declare_subscriber(
158158 session
159159 . declare_subscriber ( key_expr)
160160 . callback ( move |sample| {
161- let _ = & guard;
161+ let _ = & guard; // capture the guard
162162 callback ( sample) ;
163163 } )
164164 . wait ( )
@@ -220,7 +220,7 @@ pub fn declare_queryable(
220220 session
221221 . declare_queryable ( key_expr)
222222 . callback ( move |query| {
223- let _ = & guard;
223+ let _ = & guard; // capture the guard
224224 callback ( query) ;
225225 } )
226226 . complete ( complete)
@@ -269,7 +269,7 @@ pub fn get(
269269 let mut get_builder = session
270270 . get ( selector)
271271 . callback ( move |reply| {
272- let _ = & guard;
272+ let _ = & guard; // capture the guard
273273 callback ( reply) ;
274274 } )
275275 . target ( query_target)
@@ -428,7 +428,7 @@ pub fn declare_advanced_subscriber(
428428 let mut builder = session
429429 . declare_subscriber ( key_expr)
430430 . callback ( move |sample| {
431- let _ = & guard;
431+ let _ = & guard; // capture the guard
432432 callback ( sample) ;
433433 } )
434434 . advanced ( ) ;
You can’t perform that action at this time.
0 commit comments