mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 12:55:05 +00:00
Disallow unreachable_pub
(#4314)
This commit is contained in:
parent
97802e7466
commit
c10a4535b9
444 changed files with 1376 additions and 1106 deletions
|
@ -132,15 +132,15 @@ enum EditOperationKind {
|
|||
}
|
||||
|
||||
impl EditOperationKind {
|
||||
pub const fn is_insertion(self) -> bool {
|
||||
pub(crate) const fn is_insertion(self) -> bool {
|
||||
matches!(self, EditOperationKind::Insertion)
|
||||
}
|
||||
|
||||
pub const fn is_deletion(self) -> bool {
|
||||
pub(crate) const fn is_deletion(self) -> bool {
|
||||
matches!(self, EditOperationKind::Deletion)
|
||||
}
|
||||
|
||||
pub const fn is_replacement(self) -> bool {
|
||||
pub(crate) const fn is_replacement(self) -> bool {
|
||||
matches!(self, EditOperationKind::Replacement)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue