From: Elias Rohrer Date: Wed, 23 Aug 2023 13:16:49 +0000 (+0200) Subject: f Fix doctest X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=47e11b925797790878012d15f41c2b3c21187da7;p=rust-lightning f Fix doctest --- diff --git a/lightning-background-processor/src/lib.rs b/lightning-background-processor/src/lib.rs index ed9091552..e19a3ac44 100644 --- a/lightning-background-processor/src/lib.rs +++ b/lightning-background-processor/src/lib.rs @@ -502,8 +502,7 @@ use core::task; /// # use lightning_background_processor::{process_events_async, GossipSync}; /// # struct MyStore {} /// # impl lightning::util::persist::KVStore for MyStore { -/// # type Reader = io::Cursor>; -/// # fn read(&self, namespace: &str, key: &str) -> io::Result { Ok(io::Cursor::new(Vec::new())) } +/// # fn read(&self, namespace: &str, key: &str) -> io::Result> { Ok(Vec::new()) } /// # fn write(&self, namespace: &str, key: &str, buf: &[u8]) -> io::Result<()> { Ok(()) } /// # fn remove(&self, namespace: &str, key: &str) -> io::Result<()> { Ok(()) } /// # fn list(&self, namespace: &str) -> io::Result> { Ok(Vec::new()) }