Skip to content

Commit

Permalink
fix: failing build
Browse files Browse the repository at this point in the history
  • Loading branch information
mattyg committed Mar 15, 2024
1 parent 106689a commit 791cb41
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion crates/cli/src/commands/chart/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ impl Execute for Chart {
async fn execute(&self) -> Result<()> {
let dotrain = read_to_string(self.dotrain_file.clone()).map_err(|e| anyhow!(e))?;
let frontmatter = RainDocument::get_front_matter(&dotrain).unwrap();
let config_string: ConfigString = frontmatter.try_into()?;
let config_string: ConfigString = frontmatter.to_string().try_into()?;
let config: Config = config_string.try_into()?;
let mut fuzzer = FuzzRunner::new(&dotrain, config, None).await;
let chart_data = fuzzer.build_chart_datas().await?;
Expand Down
7 changes: 0 additions & 7 deletions crates/settings/src/string_structs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,6 @@ impl TryFrom<String> for ConfigString {
}
}

impl TryFrom<&str> for ConfigString {
type Error = serde_yaml::Error;
fn try_from(val: &str) -> Result<ConfigString, Self::Error> {
serde_yaml::from_str(val)
}
}

#[cfg(test)]
mod tests {
use super::*;
Expand Down

0 comments on commit 791cb41

Please sign in to comment.