diff options
| author | Fuwn <[email protected]> | 2022-03-08 00:03:02 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-06-09 00:46:12 -0700 |
| commit | 0db90530beef69e557ca22d585d0d360d1da853a (patch) | |
| tree | 6743d7caf3027e41091612bcead0eb8ff4b490e0 /crates/divina/src/lib.rs | |
| parent | fix(divina_compile): linking (diff) | |
| download | archived-divina-0db90530beef69e557ca22d585d0d360d1da853a.tar.xz archived-divina-0db90530beef69e557ca22d585d0d360d1da853a.zip | |
refactor(divina): return clone of config by default
Diffstat (limited to 'crates/divina/src/lib.rs')
| -rw-r--r-- | crates/divina/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/divina/src/lib.rs b/crates/divina/src/lib.rs index 2ce057e..5656e73 100644 --- a/crates/divina/src/lib.rs +++ b/crates/divina/src/lib.rs @@ -32,7 +32,7 @@ mod cli; use divina_compile::Compiler; use divina_config::Config; -#[derive(Default)] +#[derive(Default, Clone)] pub struct Divina { config: Config, compiler: Compiler, @@ -58,7 +58,7 @@ impl Divina { } #[must_use] - pub const fn expose_config(&self) -> &Config { &self.config } + pub fn expose_config(&self) -> Config { self.config.clone() } pub fn configure_compiler(&mut self, compiler: Compiler) { self.compiler = compiler; } } |