From cf8e0ae1b5411ae7342d055e1a28fa246d34df85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20H=C3=B8rl=C3=BCck=20Berg?= <36937807+henrikhorluck@users.noreply.github.com> Date: Fri, 18 Aug 2023 07:02:31 +0200 Subject: [PATCH] Make ParsedSource::new pub It will be used from main --- fish-rust/src/parse_tree.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } }