rustfmt_nightly::comment

Function recover_comment_removed

Source
pub(crate) fn recover_comment_removed(
    new: String,
    span: Span,
    context: &RewriteContext<'_>,
) -> String
Expand description

Checks is new didn’t miss any comment from span, if it removed any, return previous text