From 44b4288f52f0b205c308483c61037f1427f1b1ad Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 31 Oct 2026 05:19:42 +0100 Subject: unify UNSET constant --- src/config/file.rs | 3 +-- src/config/mod.rs | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config/file.rs b/src/config/file.rs index b30d147..114d452 100644 --- a/src/config/file.rs +++ b/src/config/file.rs @@ -16,11 +16,10 @@ use serde_json::{Map as JsonMap, Value as JsonValue}; use tracing::debug; use super::import; -use super::{Entry, Layer, Overlay, Provenance, overlay, spec, unset_entry}; +use super::{Entry, Layer, Overlay, Provenance, UNSET, overlay, spec, unset_entry}; const INCLUDE: &str = "include"; const INCLUDE_OPTIONAL: &str = "include-optional"; -const UNSET: &str = "unset"; /// The settings `path` makes, its includes resolved. pub(super) fn load(path: &Path) -> Result { diff --git a/src/config/mod.rs b/src/config/mod.rs index d737124..37c3ce6 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -1052,7 +1052,8 @@ fn culprit(merged: &Layer) -> Option<(&String, &Entry)> { const CONFIG: &str = "config"; const PRINT_CONFIG: &str = "print-config"; -const UNSET: &str = "unset"; +/// Undoing a value set before: the argument `--unset`, and the key `unset` in a file. +pub(super) const UNSET: &str = "unset"; fn command() -> Command { let mut command = Command::new("continuum") -- cgit v1.3.1