aboutsummaryrefslogtreecommitdiff
path: root/src/config/mod.rs
diff options
context:
space:
mode:
authorMax Audron <audron@cocaine.farm>2022-06-07 12:28:18 +0200
committerMaximilian Manz <maximilian.manz@de.clara.net>2022-06-20 11:33:04 +0200
commite9dc01ffb547d0fa605bfe38b34672ddd5161be4 (patch)
tree5ca50547512b7cc2256ef457d468c4252ae23a0b /src/config/mod.rs
parentimplement cloning of new repos (diff)
reorganize file structure and cleanup lints
Diffstat (limited to 'src/config/mod.rs')
-rw-r--r--src/config/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/config/mod.rs b/src/config/mod.rs
index 26d80f4..781aedf 100644
--- a/src/config/mod.rs
+++ b/src/config/mod.rs
@@ -2,7 +2,7 @@ pub mod args;
use serde::{Deserialize, Serialize};
-use std::{collections::BTreeMap, ops::Deref, path::Path};
+use std::{collections::BTreeMap, ops::Deref};
use figment::{
providers::{Format, Toml},
@@ -19,7 +19,7 @@ use anyhow::{Context, Result};
// TODO make forge optional
pub struct Config {
#[serde(flatten)]
- config: BTreeMap<String, ForgeConfig>
+ config: BTreeMap<String, ForgeConfig>,
}
impl Deref for Config {
@@ -32,7 +32,7 @@ impl Deref for Config {
impl Config {
// Allow the configuration to be extracted from any `Provider`.
- fn from<T: Provider>(provider: T) -> Result<Config, Error> {
+ pub fn from<T: Provider>(provider: T) -> Result<Config, Error> {
Figment::from(provider).extract()
}