1
Fork 0

Use Edition methods a bit more

This commit is contained in:
Maybe Waffle 2023-01-31 09:50:56 +00:00
parent dc3e59cb3f
commit fd5774a4d7
5 changed files with 11 additions and 12 deletions

View file

@ -706,22 +706,22 @@ impl Span {
#[inline]
pub fn rust_2015(self) -> bool {
self.edition() == edition::Edition::Edition2015
self.edition().rust_2015()
}
#[inline]
pub fn rust_2018(self) -> bool {
self.edition() >= edition::Edition::Edition2018
self.edition().rust_2018()
}
#[inline]
pub fn rust_2021(self) -> bool {
self.edition() >= edition::Edition::Edition2021
self.edition().rust_2021()
}
#[inline]
pub fn rust_2024(self) -> bool {
self.edition() >= edition::Edition::Edition2024
self.edition().rust_2024()
}
/// Returns the source callee.