aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-31 05:19:42 +0100
committertv <tv@krebsco.de>2026-10-31 05:19:42 +0100
commit44b4288f52f0b205c308483c61037f1427f1b1ad (patch)
tree6abbae540b10accfb2cee8a2fa79de69008f2603 /src
parent117b2406bd5d9812943921c25e019c96a1558b48 (diff)
unify UNSET constant
Diffstat (limited to 'src')
-rw-r--r--src/config/file.rs3
-rw-r--r--src/config/mod.rs3
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<Layer> {
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")