Skip to content
Snippets Groups Projects
Verified Commit 627a5cf7 authored by Louis's avatar Louis :fire:
Browse files

Implement 'apply' for Option<EnvFile>

parent 182e5a54
No related branches found
No related tags found
No related merge requests found
......@@ -149,6 +149,14 @@ impl <E> ApplyEnvironmentFile for Result<EnvironmentFile, E> {
}
}
impl ApplyEnvironmentFile for Option<EnvironmentFile> {
fn apply(&self, options: ApplyOptions) {
if let Some(file) = self {
file.apply(options);
}
}
}
pub struct EnvFileIterator<'a> {
lines: &'a [FileLine],
current: usize,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment