From 47e11b925797790878012d15f41c2b3c21187da7 Mon Sep 17 00:00:00 2001 From: Elias Rohrer Date: Wed, 23 Aug 2023 15:16:49 +0200 Subject: [PATCH] f Fix doctest --- lightning-background-processor/src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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()) } -- 2.39.5