difftreelog
fix(formatter) diagnostic on offset 0
in: master
1 file changed
crates/jrsonnet-formatter/src/lib.rsdiffbeforeafterboth940 ))940 ))941 .range(941 .range(942 error.range.start().into()942 error.range.start().into()943 ..=(usize::from(error.range.end()) - 1).max(error.range.start().into()),943 ..=(usize::from(error.range.end()).saturating_sub(1))944 .max(error.range.start().into()),944 )945 )945 .build();946 .build();