Adjust line numbers when reporting rules in f-strings (#244)

This commit is contained in:
Charlie Marsh 2022-09-21 13:42:58 -04:00 committed by GitHub
parent 1e171ce0e8
commit 65d29d9734
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 151 additions and 87 deletions

View file

@ -65,3 +65,7 @@ pub struct Binding {
/// last used.
pub used: Option<(usize, Location)>,
}
pub trait CheckLocator {
fn locate_check(&self, default: Location) -> Location;
}