From 4c86897a71466515f3c42392eb1a0373d52f3ed5 Mon Sep 17 00:00:00 2001 From: mark Date: Mon, 1 May 2023 01:05:22 +0200 Subject: [PATCH] fix nushell_plugins not compiling due to rename of parse module to parsing --- mers/src/nushell_plugin.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mers/src/nushell_plugin.rs b/mers/src/nushell_plugin.rs index 32a045a..07b50a2 100755 --- a/mers/src/nushell_plugin.rs +++ b/mers/src/nushell_plugin.rs @@ -4,7 +4,7 @@ use nu_plugin::{serve_plugin, MsgPackSerializer, Plugin}; use nu_protocol::{PluginExample, PluginSignature, ShellError, Span, Spanned, SyntaxShape, Value}; use crate::{ - parse, + parsing, script::{ global_info::GlobalScriptInfo, val_data::{VData, VDataEnum}, @@ -47,9 +47,9 @@ impl Plugin for MersNuPlugin { let source_span = Span::unknown(); // source.span; // let source = source.item; let mut file = if call.has_flag("execute") { - parse::file::File::new(source, PathBuf::new()) + parsing::file::File::new(source, PathBuf::new()) } else { - parse::file::File::new( + parsing::file::File::new( match fs::read_to_string(&source) { Ok(v) => v, Err(e) => { @@ -61,7 +61,7 @@ impl Plugin for MersNuPlugin { source.into(), ) }; - Ok(match parse::parse::parse(&mut file) { + Ok(match parsing::parse::parse(&mut file) { Ok(code) => { let args = match call.opt(1)? { Some(v) => v, @@ -122,7 +122,7 @@ impl Plugin for MersNuPlugin { error: Box::new(ShellError::IncorrectValue { msg: format!( "Couldn't compile mers, error: {}", - e.0.with_file_and_gsinfo(&file, e.1.as_ref()) + e.with_file(&file) ), span: source_span, }),