Function rustfmt_nightly::comment::recover_comment_removed

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

Checks is new didn’t miss any comment from span, if it removed any, return previous text (if it fits in the width/offset, else return None), else return new