diff --git a/lib/src/revset.rs b/lib/src/revset.rs
index ecda8aee61..fe9621b33f 100644
--- a/lib/src/revset.rs
+++ b/lib/src/revset.rs
@@ -79,7 +79,7 @@ pub enum RevsetEvaluationError {
 
 #[derive(Parser)]
 #[grammar = "revset.pest"]
-pub struct RevsetParser;
+struct RevsetParser;
 
 const STRING_LITERAL_PARSER: StringLiteralParser<Rule> = StringLiteralParser {
     content_rule: Rule::string_content,