Enforce doc link correctness during `cargo doc` runs and in CI
[rust-lightning] / lightning-persister / src / lib.rs
index 0151b1e464ea6af8559e147ef19084331485f8f9..1b343ce164f508f7cb0e99adfc3fc5f391751fe0 100644 (file)
@@ -1,3 +1,5 @@
+#![deny(broken_intra_doc_links)]
+
 mod util;
 
 extern crate lightning;
@@ -124,7 +126,7 @@ impl FilesystemPersister {
                                if contents.is_err() { return Err(ChannelMonitorUpdateErr::PermanentFailure); }
 
                                if let Ok((_, loaded_monitor)) =
-                                       <(Option<BlockHash>, ChannelMonitor<Keys::Signer>)>::read(&mut Cursor::new(&contents.unwrap()), keys) {
+                                       <(BlockHash, ChannelMonitor<Keys::Signer>)>::read(&mut Cursor::new(&contents.unwrap()), keys) {
                                                res.insert(OutPoint { txid: txid.unwrap(), index: index.unwrap() }, loaded_monitor);
                                        } else {
                                                return Err(ChannelMonitorUpdateErr::PermanentFailure);