Skip to content

Commit 6ac7371

Browse files
committed
chore: rename Context constructor
1 parent f55ae4b commit 6ac7371

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

crates/quickmark_linter/src/linter.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ pub struct NodeInfo {
118118
}
119119

120120
impl Context {
121-
pub fn new_enhanced(file_path: PathBuf, config: QuickmarkConfig, source: &str, root_node: &Node) -> Self {
121+
pub fn new(file_path: PathBuf, config: QuickmarkConfig, source: &str, root_node: &Node) -> Self {
122122
let lines: Vec<String> = source.lines().map(|s| s.to_string()).collect();
123123
let node_cache = Self::build_node_cache(root_node);
124124

@@ -284,7 +284,7 @@ impl MultiRuleLinter {
284284
let tree = parser.parse(document, None).expect("Parse failed");
285285

286286
// Create context with pre-initialized cache
287-
let context = Rc::new(Context::new_enhanced(
287+
let context = Rc::new(Context::new(
288288
file_path,
289289
config,
290290
document,

0 commit comments

Comments
 (0)