Skip to main content

nearest_miss_with

Function nearest_miss_with 

Source
pub fn nearest_miss_with<S: AsRef<str>>(
    lines: &[S],
    block: &[String],
    squeeze: bool,
) -> Option<NearestMiss>
Expand description

nearest_miss, selecting the exact or blank-run-squeezing matcher by squeeze. Used so the diagnostic agrees with how the edit actually matched.