]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Deprecate the `lightning::util::string` re-export from types
authorMatt Corallo <git@bluematt.me>
Sat, 12 Oct 2024 22:06:57 +0000 (22:06 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 15 Oct 2024 14:33:03 +0000 (14:33 +0000)
Like we've done for `features` and `payment`, here we mark the
`lightning::util::string` re-export as deprecated.

lightning/src/util/mod.rs

index bb138dd69d1c1d2400c7c37ed61204ca350fe5c8..29954e8662492b5962a88ff6ddba01d7ce5b0250 100644 (file)
@@ -56,5 +56,9 @@ pub mod test_channel_signer;
 
 pub mod string {
        //! Utilities to wrap untrusted strings and handle them (more) safely
+       //!
+       //! These re-exports are deprecated in favor of [`lightning::types::string`].
+       //!
+       //! [`lightning::types::string`]: crate::types::string
        pub use lightning_types::string::{PrintableString, UntrustedString};
 }