1
Fork 0

Reduce pub exposure.

This commit is contained in:
Nicholas Nethercote 2024-06-03 15:47:46 +10:00
parent 7ebd2bdbf6
commit 95b4c07ef8
8 changed files with 51 additions and 42 deletions

View file

@ -20,7 +20,7 @@ use tracing::debug;
/// Specifies how to parse a path.
#[derive(Copy, Clone, PartialEq)]
pub enum PathStyle {
pub(super) enum PathStyle {
/// In some contexts, notably in expressions, paths with generic arguments are ambiguous
/// with something else. For example, in expressions `segment < ....` can be interpreted
/// as a comparison and `segment ( ....` can be interpreted as a function call.