mirror of
https://codeberg.org/unspeaker/tek.git
synced 2026-07-18 00:06:59 +02:00
restruct: 30e
This commit is contained in:
parent
8b6ab2fd08
commit
c737c7d839
13 changed files with 771 additions and 747 deletions
|
|
@ -37,7 +37,7 @@ impl Config {
|
|||
const CONFIG: &'static str = "tek.edn";
|
||||
const DEFAULTS: &'static str = include_str!("../tek.edn");
|
||||
|
||||
pub fn watch <T> (callback: impl Fn(Self)->T) -> Usually<T> {
|
||||
pub fn watch <T> (callback: impl FnOnce(Self)->T) -> Usually<T> {
|
||||
let config = Self::init_new(None)?;
|
||||
let result = callback(config);
|
||||
Ok(result)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue