pub fn finish(&mut self) -> String {
        let end_span = Span::new(self.next_pos, self.closure_span.hi(), self.closure_span.ctxt(), None);
        let end_snip = snippet_with_applicability(self.cx, end_span, "..", &mut self.applicability);
        let sugg = format!("{}{}", self.suggestion_start, end_snip);
        if self.closure_arg_is_type_annotated_double_ref {
            sugg.replacen('&', "", 1)
        } else {
            sugg
        }
    }
/// build final suggestion:
/// - create the ending part of suggestion
/// - concatenate starting and ending parts
/// - potentially remove needless borrowing
build final suggestion:
create the ending part of suggestion
concatenate starting and ending parts
potentially remove needless borrowing
build final suggestion : create the ending part of suggestion concatenate starting and ending parts potentially remove needless borrowing
pub fn finish(&mut self) -> String {
        let end_span = Span::new(self.next_pos, self.closure_span.hi(), self.closure_span.ctxt(), None);
        let end_snip = snippet_with_applicability(self.cx, end_span, "..", &mut self.applicability);
        let sugg = format!("{}{}", self.suggestion_start, end_snip);
        if self.closure_arg_is_type_annotated_double_ref {
            sugg.replacen('&', "", 1)
        } else {
            sugg
        }
    }
pub fn finish ( & mut self ) -> String { let end_span = Span :: new ( self . next_pos , self . closure_span . hi ( ) , self . closure_span . ctxt ( ) , None ) ; let end_snip = snippet_with_applicability ( self . cx , end_span , " " , & mut self . applicability ) ; let sugg = format ! ( " " self suggestion_start end_snip ) ; if self . closure_arg_is_type_annotated_double_ref { sugg . replacen ( '&' , " " , 1 ) } else { sugg } }
build final suggestion:
 create the ending part of suggestion
 concatenate starting and ending parts
 potentially remove needless borrowing
build final suggestion : create the ending part of suggestion concatenate starting and ending parts potentially remove needless borrowing
&mut self