From a4a68fdb178722e23e007b1f6bf72474caae4e97 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Thu, 9 Jan 2025 16:32:34 +0100 Subject: Rename SourceInfo::working_directory to directory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also documented the struct as it is exported. Signed-off-by: Miquel Sabaté Solà --- lib/xixanta/src/assembler.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/xixanta/src/assembler.rs') diff --git a/lib/xixanta/src/assembler.rs b/lib/xixanta/src/assembler.rs index 99f76d9..c52c36c 100644 --- a/lib/xixanta/src/assembler.rs +++ b/lib/xixanta/src/assembler.rs @@ -1310,7 +1310,7 @@ impl<'a> Assembler<'a> { // `File` operations work in this way, set the current directory now. match &self.sources.get(node.source) { Some(source) => { - if let Err(e) = std::env::set_current_dir(&source.working_directory) { + if let Err(e) = std::env::set_current_dir(&source.directory) { return Err(Error { line: node.value.line, message: format!("could not move to the directory of '{}': {}", value, e), @@ -1935,7 +1935,7 @@ impl<'a> Assembler<'a> { self.sources .get(node.source) .unwrap_or(&SourceInfo { - working_directory: self.sources[0].working_directory.clone(), + directory: self.sources[0].directory.clone(), name: self.sources[0].name.clone(), }) .clone() -- cgit v1.2.3