Skip to content

Commit

Permalink
fix cargo
Browse files Browse the repository at this point in the history
Signed-off-by: Phani Sajja <[email protected]>
  • Loading branch information
sajjaphani committed May 3, 2024
1 parent 9e46bf2 commit cd903e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/check/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use color_eyre::{
};
use owo_colors::OwoColorize;
use serde::{Deserialize, Serialize};
use toml_edit::{Array, Document, Formatted, InlineTable, Value};
use toml_edit::{Array, DocumentMut, Formatted, InlineTable, Value};
use tracing::debug;

#[cfg(target_os = "linux")]
Expand Down Expand Up @@ -78,8 +78,8 @@ impl PlanContextConfig {
}

pub fn from_str(value: &str, target: PackageTarget) -> Result<PlanContextConfig> {
let document = value.parse::<Document>()?;
let mut restructured_document = Document::new();
let document = value.parse::<DocumentMut>()?;
let mut restructured_document = DocumentMut::new();
let mut restructured_rules = Array::default();
let rule_sets = [
document.get("rules"),
Expand Down

0 comments on commit cd903e2

Please sign in to comment.