diff options
| author | Serguey Parkhomovsky <xindigo@gmail.com> | 2026-03-03 20:51:07 -0800 |
|---|---|---|
| committer | Serguey Parkhomovsky <xindigo@gmail.com> | 2026-03-03 20:51:07 -0800 |
| commit | b0e11d29dfc5f2cf9678872e782be2ed0625ef30 (patch) | |
| tree | 74d8c0fa198e08023933f8c049849639788687e7 /src/lib.rs | |
| parent | 7c3f6431c0f162eadffda456366c1071eaf9dfe8 (diff) | |
get it to build
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -12,6 +12,12 @@ pub struct Config { pub printers: Vec<Printer>, } +impl Config { + pub fn load(toml: &str) -> Config { + toml::from_str(toml).expect("Couldn't parse config.toml") + } +} + #[derive(Debug, Deserialize)] #[serde(tag = "type", rename_all = "lowercase")] pub enum Printer { |
