From: Elias Rohrer Date: Mon, 21 Aug 2023 12:41:46 +0000 (+0200) Subject: f Clarify `namespace`/`key` format requirments X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=49a72aa1f5076b5a765823a447c4b2f8277bd902;p=rust-lightning f Clarify `namespace`/`key` format requirments --- 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;