Skip to content

Commit

Permalink
Reduce Precedence's visibility to expr module
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed May 10, 2024
1 parent 9e85505 commit 7acbcc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1150,7 +1150,7 @@ mod precedence {
use super::BinOp;
use std::cmp::Ordering;

pub(crate) enum Precedence {
pub(super) enum Precedence {
Any,
Assign,
Range,
Expand All @@ -1167,7 +1167,7 @@ mod precedence {
}

impl Precedence {
pub(crate) fn of(op: &BinOp) -> Self {
pub(super) fn of(op: &BinOp) -> Self {
match op {
BinOp::Add(_) | BinOp::Sub(_) => Precedence::Arithmetic,
BinOp::Mul(_) | BinOp::Div(_) | BinOp::Rem(_) => Precedence::Term,
Expand Down

0 comments on commit 7acbcc2

Please sign in to comment.