Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
sunshowers committed Apr 2, 2024
1 parent edede07 commit d37aa42
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wicket/src/cli/rack_setup/config_toml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use serde::Serialize;
use std::borrow::Cow;
use std::fmt;
use toml_edit::Array;
use toml_edit::Document;
use toml_edit::DocumentMut;
use toml_edit::Formatted;
use toml_edit::InlineTable;
use toml_edit::Item;
Expand All @@ -28,12 +28,12 @@ static TEMPLATE: &str = include_str!("config_template.toml");
const ARRAY_SEP: &str = "\n ";

pub(super) struct TomlTemplate {
doc: Document,
doc: DocumentMut,
}

impl TomlTemplate {
pub(crate) fn populate(config: &CurrentRssUserConfigInsensitive) -> Self {
let mut doc = TEMPLATE.parse::<Document>().unwrap();
let mut doc = TEMPLATE.parse::<DocumentMut>().unwrap();

*doc.get_mut("external_dns_zone_name")
.unwrap()
Expand Down

0 comments on commit d37aa42

Please sign in to comment.