aboutsummaryrefslogtreecommitdiff
path: root/crates/nasm/src
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2025-01-09 16:32:34 +0100
committerMiquel Sabaté Solà <mikisabate@gmail.com>2025-01-09 16:32:34 +0100
commita4a68fdb178722e23e007b1f6bf72474caae4e97 (patch)
treef014b783d301c9ceb878c783ba2b7b2054772cfe /crates/nasm/src
parent92092ccc245269e0c3a864d06f7e382a5bb9d8b0 (diff)
downloadtools.nes-a4a68fdb178722e23e007b1f6bf72474caae4e97.tar.gz
tools.nes-a4a68fdb178722e23e007b1f6bf72474caae4e97.zip
Rename SourceInfo::working_directory to directory
Also documented the struct as it is exported. Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'crates/nasm/src')
-rw-r--r--crates/nasm/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/nasm/src/main.rs b/crates/nasm/src/main.rs
index 561e305..0f65fbf 100644
--- a/crates/nasm/src/main.rs
+++ b/crates/nasm/src/main.rs
@@ -50,7 +50,7 @@ fn main() -> Result<()> {
input = Box::new(File::open(file)?);
SourceInfo {
- working_directory: path
+ directory: path
.parent()
.with_context(|| String::from("Failed to find directory for given file"))?
.to_path_buf(),
@@ -60,7 +60,7 @@ fn main() -> Result<()> {
None => {
input = Box::new(std::io::stdin());
SourceInfo {
- working_directory: std::env::current_dir()
+ directory: std::env::current_dir()
.with_context(|| String::from("Could not fetch current directory"))?
.to_path_buf(),
name: "<stdin>".to_string(),