@@ -868,11 +868,19 @@ impl<'a, 'tcx> BorrowckCtxt<'a, 'tcx> {
868868 db. note ( fn_closure_msg) ;
869869 } else {
870870 db. span_suggestion_with_applicability (
871- sp, msg, suggestion, Applicability :: Unspecified ) ;
871+ sp,
872+ msg,
873+ suggestion,
874+ Applicability :: Unspecified ,
875+ ) ;
872876 }
873877 } else {
874878 db. span_suggestion_with_applicability (
875- sp, msg, suggestion, Applicability :: Unspecified ) ;
879+ sp,
880+ msg,
881+ suggestion,
882+ Applicability :: Unspecified ,
883+ ) ;
876884 }
877885 }
878886 _ => {
@@ -1330,13 +1338,14 @@ impl<'a, 'tcx> BorrowckCtxt<'a, 'tcx> {
13301338 & cmt_path_or_string,
13311339 capture_span,
13321340 Origin :: Ast )
1333- . span_suggestion_with_applicability ( err. span ,
1334- & format ! ( "to force the closure to take ownership of {} \
1335- (and any other referenced variables), \
1336- use the `move` keyword",
1337- cmt_path_or_string) ,
1338- suggestion,
1339- Applicability :: Unspecified ,
1341+ . span_suggestion_with_applicability (
1342+ err. span ,
1343+ & format ! ( "to force the closure to take ownership of {} \
1344+ (and any other referenced variables), \
1345+ use the `move` keyword",
1346+ cmt_path_or_string) ,
1347+ suggestion,
1348+ Applicability :: Unspecified ,
13401349 )
13411350 . emit ( ) ;
13421351 self . signal_error ( ) ;
0 commit comments