diff options
-rw-r--r-- | Cargo.lock | 2 | ||||
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | src/processors/compiler.rs | 10 |
3 files changed, 7 insertions, 7 deletions
@@ -9,7 +9,7 @@ source = "git+git://benbridle.com/ansi?tag=v1.0.0#81d47867c2c97a9ae1d1c8fdfcd42c [[package]] name = "assembler" -version = "2.1.1" +version = "2.2.0" dependencies = [ "ansi", "log", @@ -1,6 +1,6 @@ [package] name = "assembler" -version = "2.1.1" +version = "2.2.0" edition = "2021" [dependencies] diff --git a/src/processors/compiler.rs b/src/processors/compiler.rs index 626dfd3..b3544b6 100644 --- a/src/processors/compiler.rs +++ b/src/processors/compiler.rs @@ -32,7 +32,7 @@ impl Compiler { } /// Find library files descending from the parent directory. - pub fn include_libs_from_parent(&mut self, ext: &str) { + pub fn include_libs_from_parent(&mut self, ext: Option<&str>) { if let Some(path) = &self.source_path { if let Some(parent_path) = path.parent() { let parent_path = parent_path.to_owned(); @@ -42,15 +42,15 @@ impl Compiler { } /// Find library files at or descending from a path. - pub fn include_libs_from_path(&mut self, path: &Path, ext: &str) { - let libraries = gather_from_path(path, Some(ext), self.parse_symbols); + pub fn include_libs_from_path(&mut self, path: &Path, ext: Option<&str>) { + let libraries = gather_from_path(path, ext, self.parse_symbols); self.resolver.add_library_source_units(libraries); self.resolver.resolve(); } /// Find library files from a PATH-style environment variable. - pub fn include_libs_from_path_variable(&mut self, name: &str, ext: &str) { - let libraries = gather_from_path_variable(name, Some(ext), self.parse_symbols); + pub fn include_libs_from_path_variable(&mut self, name: &str, ext: Option<&str>) { + let libraries = gather_from_path_variable(name, ext, self.parse_symbols); self.resolver.add_library_source_units(libraries); self.resolver.resolve(); } |