We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d2e8cb commit 29dd00cCopy full SHA for 29dd00c
nix-script-directives/src/lib.rs
@@ -5,6 +5,7 @@ mod parser;
5
use crate::expr::Expr;
6
use anyhow::{Context, Result};
7
use core::hash::{Hash, Hasher};
8
+use parser::Parser;
9
use rnix::SyntaxKind;
10
use std::collections::HashMap;
11
use std::path::Path;
@@ -29,8 +30,8 @@ impl Directives {
29
30
Self::parse(indicator, &source)
31
}
32
- pub fn parse(indicator: &str, source: &str) -> Result<Self> {
33
- let parser = parser::Parser::new(indicator).context("could not construct a parser")?;
+ fn parse(indicator: &str, source: &str) -> Result<Self> {
34
+ let parser = Parser::new(indicator).context("could not construct a parser")?;
35
let fields = parser.parse(source);
36
37
Self::from_directives(fields)
0 commit comments