summaryrefslogtreecommitdiff
path: root/src/processors/compiler.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/processors/compiler.rs')
-rw-r--r--src/processors/compiler.rs10
1 files changed, 5 insertions, 5 deletions
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();
}