Skip to content

Commit 9131141

Browse files
committed
Doctest
1 parent 2cdaedf commit 9131141

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/ruff_python_parser/src/token.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ impl TokenKind {
486486
///
487487
/// [`as_unary_operator`]: TokenKind::as_unary_operator
488488
#[inline]
489-
pub(crate) const fn as_unary_arithmetic_operator(self) -> Option<UnaryOp> {
489+
pub const fn as_unary_arithmetic_operator(self) -> Option<UnaryOp> {
490490
Some(match self {
491491
TokenKind::Plus => UnaryOp::UAdd,
492492
TokenKind::Minus => UnaryOp::USub,
@@ -514,7 +514,7 @@ impl TokenKind {
514514
/// Returns the [`BoolOp`] that corresponds to this token kind, if it is a boolean operator,
515515
/// otherwise return [None].
516516
#[inline]
517-
pub(crate) const fn as_bool_operator(self) -> Option<BoolOp> {
517+
pub const fn as_bool_operator(self) -> Option<BoolOp> {
518518
Some(match self {
519519
TokenKind::And => BoolOp::And,
520520
TokenKind::Or => BoolOp::Or,

0 commit comments

Comments
 (0)