File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
crates/ruff_python_parser/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments