chore: fix warnings

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-08-25 17:27:31 +02:00
parent b01543a8b9
commit b3aedfb411
5 changed files with 4 additions and 37 deletions

View File

@@ -9,7 +9,7 @@ use toml::Table;
use crate::project::CUDDLE_PROJECT_FILE;
pub struct Project {
value: Value,
pub value: Value,
pub root: PathBuf,
}
@@ -23,7 +23,6 @@ impl Project {
pub fn from_file(content: &str, root: &Path) -> anyhow::Result<Self> {
let table: Table = toml::from_str(content)?;
let config = Config::default();
let project = table
.get("project")
@@ -47,11 +46,6 @@ impl Project {
}
}
#[derive(Default)]
struct Config {
project: BTreeMap<String, Value>,
}
pub enum Value {
String(String),
Bool(bool),