diff --git a/fish-rust/src/parse_tree.rs b/fish-rust/src/parse_tree.rs index d4e92b18a..85bb7df62 100644 --- a/fish-rust/src/parse_tree.rs +++ b/fish-rust/src/parse_tree.rs @@ -114,7 +114,7 @@ unsafe impl Sync for ParsedSource {} const _: () = assert_sync::(); impl ParsedSource { - fn new(src: WString, ast: Ast) -> Self { + pub fn new(src: WString, ast: Ast) -> Self { let src_ffi = src.to_ffi(); ParsedSource { src, src_ffi, ast } }