From 49a72aa1f5076b5a765823a447c4b2f8277bd902 Mon Sep 17 00:00:00 2001 From: Elias Rohrer Date: Mon, 21 Aug 2023 14:41:46 +0200 Subject: [PATCH] f Clarify `namespace`/`key` format requirments --- lightning/src/util/persist.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lightning/src/util/persist.rs b/lightning/src/util/persist.rs index 1597258e3..ef4f84cb5 100644 --- a/lightning/src/util/persist.rs +++ b/lightning/src/util/persist.rs @@ -51,8 +51,8 @@ pub const SCORER_PERSISTENCE_KEY: &str = "scorer"; /// Implementations of this trait are free to handle them in different ways, as long as /// per-namespace key uniqueness is asserted. /// -/// Keys and namespaces are required to be valid ASCII strings and the empty namespace (`""`) is -/// assumed to be valid namespace. +/// Keys and namespaces are required to be valid ASCII strings that do not contain control +/// characters, and the empty namespace (`""`) is assumed to be a valid namespace. pub trait KVStore { /// A reader as returned by [`Self::read`]. type Reader: io::Read; -- 2.39.5