Use Edition
methods a bit more
This commit is contained in:
parent
dc3e59cb3f
commit
fd5774a4d7
5 changed files with 11 additions and 12 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue