diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-01-09 16:32:34 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2025-01-09 16:32:34 +0100 |
| commit | a4a68fdb178722e23e007b1f6bf72474caae4e97 (patch) | |
| tree | f014b783d301c9ceb878c783ba2b7b2054772cfe /crates/nasm | |
| parent | 92092ccc245269e0c3a864d06f7e382a5bb9d8b0 (diff) | |
| download | tools.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')
| -rw-r--r-- | crates/nasm/src/main.rs | 4 |
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(), |
