mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-12 22:23:49 +01:00
rust/docs: fix critical typo for missing_docs lint
Fix typo fromfe66d06a45
. The exclamation point is what lets an attribute apply to an entire crate, without the ! it's practically a placebo. Fix on commitsaf182d4ab5
andb6059297d7
, and note there are still missing docs in both crypto and protover, for now. https://doc.rust-lang.org/reference/attributes.html
This commit is contained in:
parent
8410d3b0ad
commit
fef2ba2267
@ -104,7 +104,7 @@ repo.
|
|||||||
Documentation
|
Documentation
|
||||||
---------------
|
---------------
|
||||||
|
|
||||||
You MUST include `#[deny(missing_docs)]` in your crate.
|
You MUST include `#![deny(missing_docs)]` in your crate.
|
||||||
|
|
||||||
For function/method comments, you SHOULD include a one-sentence, "first person"
|
For function/method comments, you SHOULD include a one-sentence, "first person"
|
||||||
description of function behaviour (see requirements for documentation as
|
description of function behaviour (see requirements for documentation as
|
||||||
|
@ -24,7 +24,8 @@
|
|||||||
//! assert!(result == [b'X'; DIGEST256_LEN]);
|
//! assert!(result == [b'X'; DIGEST256_LEN]);
|
||||||
//! ```
|
//! ```
|
||||||
|
|
||||||
#[deny(missing_docs)]
|
// XXX: add missing docs
|
||||||
|
//#![deny(missing_docs)]
|
||||||
|
|
||||||
// External crates from cargo or TOR_RUST_DEPENDENCIES.
|
// External crates from cargo or TOR_RUST_DEPENDENCIES.
|
||||||
extern crate digest;
|
extern crate digest;
|
||||||
|
@ -22,7 +22,8 @@
|
|||||||
//! protocols to develop independently, without having to claim compatibility
|
//! protocols to develop independently, without having to claim compatibility
|
||||||
//! with specific versions of Tor.
|
//! with specific versions of Tor.
|
||||||
|
|
||||||
#[deny(missing_docs)]
|
// XXX: add missing docs
|
||||||
|
//#![deny(missing_docs)]
|
||||||
|
|
||||||
extern crate libc;
|
extern crate libc;
|
||||||
extern crate smartlist;
|
extern crate smartlist;
|
||||||
|
Loading…
Reference in New Issue
Block a user