Adjust U011 start location (#828)

This commit is contained in:
Jonathan Plasse 2022-11-20 16:13:29 +01:00 committed by GitHub
parent 4be09b45ea
commit e63ea704f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 20 additions and 58 deletions

View file

@ -19,9 +19,7 @@ impl Range {
pub fn from_located<T>(located: &Located<T>) -> Self {
Range {
location: located.location,
end_location: located
.end_location
.expect("AST nodes should have end_location."),
end_location: located.end_location.unwrap(),
}
}
}