Use `config.toml` instead of inner attributes for private links (#4627)
This commit is contained in:
parent
8160b4c35a
commit
b91aaf7863
|
|
@ -49,6 +49,9 @@ rustflags = [
|
|||
# Code styles we want to accept
|
||||
"-Aclippy::try_err",
|
||||
|
||||
# Links in public docs can point to private items.
|
||||
"-Arustdoc::private_intra_doc_links"
|
||||
|
||||
# TODOs:
|
||||
# `cargo fix` might help do these fixes,
|
||||
# or add a config.toml to sub-directories which should allow these lints,
|
||||
|
|
|
|||
|
|
@ -6,7 +6,6 @@
|
|||
#![doc(html_favicon_url = "https://zfnd.org/wp-content/uploads/2022/03/zebra-favicon-128.png")]
|
||||
#![doc(html_logo_url = "https://zfnd.org/wp-content/uploads/2022/03/zebra-icon.png")]
|
||||
#![doc(html_root_url = "https://doc.zebra.zfnd.org/zebra_chain")]
|
||||
#![allow(rustdoc::private_intra_doc_links)]
|
||||
// Required by bitvec! macro
|
||||
#![recursion_limit = "256"]
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,6 @@
|
|||
#![doc(html_favicon_url = "https://zfnd.org/wp-content/uploads/2022/03/zebra-favicon-128.png")]
|
||||
#![doc(html_logo_url = "https://zfnd.org/wp-content/uploads/2022/03/zebra-icon.png")]
|
||||
#![doc(html_root_url = "https://doc.zebra.zfnd.org/zebra_consensus")]
|
||||
#![allow(rustdoc::private_intra_doc_links)]
|
||||
|
||||
mod block;
|
||||
mod checkpoint;
|
||||
|
|
|
|||
|
|
@ -124,7 +124,6 @@
|
|||
#![doc(html_favicon_url = "https://zfnd.org/wp-content/uploads/2022/03/zebra-favicon-128.png")]
|
||||
#![doc(html_logo_url = "https://zfnd.org/wp-content/uploads/2022/03/zebra-icon.png")]
|
||||
#![doc(html_root_url = "https://doc.zebra.zfnd.org/zebra_network")]
|
||||
#![allow(rustdoc::private_intra_doc_links)]
|
||||
|
||||
#[macro_use]
|
||||
extern crate pin_project;
|
||||
|
|
|
|||
|
|
@ -11,7 +11,6 @@
|
|||
#![doc(html_favicon_url = "https://zfnd.org/wp-content/uploads/2022/03/zebra-favicon-128.png")]
|
||||
#![doc(html_logo_url = "https://zfnd.org/wp-content/uploads/2022/03/zebra-icon.png")]
|
||||
#![doc(html_root_url = "https://doc.zebra.zfnd.org/zebra_state")]
|
||||
#![allow(rustdoc::private_intra_doc_links)]
|
||||
|
||||
#[macro_use]
|
||||
extern crate tracing;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@
|
|||
#![doc(html_favicon_url = "https://zfnd.org/wp-content/uploads/2022/03/zebra-favicon-128.png")]
|
||||
#![doc(html_logo_url = "https://zfnd.org/wp-content/uploads/2022/03/zebra-icon.png")]
|
||||
#![doc(html_root_url = "https://doc.zebra.zfnd.org/zebra_test")]
|
||||
#![allow(rustdoc::private_intra_doc_links)]
|
||||
// Each lazy_static variable uses additional recursion
|
||||
#![recursion_limit = "512"]
|
||||
use color_eyre::section::PanicMessage;
|
||||
|
|
|
|||
|
|
@ -17,7 +17,6 @@
|
|||
#![doc(html_favicon_url = "https://zfnd.org/wp-content/uploads/2022/03/zebra-favicon-128.png")]
|
||||
#![doc(html_logo_url = "https://zfnd.org/wp-content/uploads/2022/03/zebra-icon.png")]
|
||||
#![doc(html_root_url = "https://doc.zebra.zfnd.org/zebrad")]
|
||||
#![allow(rustdoc::private_intra_doc_links)]
|
||||
// Tracing causes false positives on this lint:
|
||||
// https://github.com/tokio-rs/tracing/issues/553
|
||||
#![allow(clippy::cognitive_complexity)]
|
||||
|
|
|
|||
Loading…
Reference in New Issue