clippy: Add standard test lint block to several examples
This commit is contained in:
parent
bebf013bef
commit
d965dc3f70
|
@ -1,3 +1,9 @@
|
|||
// @@ begin test lint list maintained by maint/add_warning @@
|
||||
#![allow(clippy::print_stderr)]
|
||||
#![allow(clippy::print_stdout)]
|
||||
#![allow(clippy::unwrap_used)]
|
||||
//! <!-- @@ end test lint list maintained by maint/add_warning @@ -->
|
||||
|
||||
// This example showcase how to use the trait IsolationHelper to build complexe isolation rules.
|
||||
// For most usages, using a combination of TorClient::isolated_client and IsolationToken should
|
||||
// be enough.
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
// @@ begin test lint list maintained by maint/add_warning @@
|
||||
#![allow(clippy::print_stderr)]
|
||||
#![allow(clippy::print_stdout)]
|
||||
#![allow(clippy::unwrap_used)]
|
||||
//! <!-- @@ end test lint list maintained by maint/add_warning @@ -->
|
||||
|
||||
//! This example showcases using a custom [`TcpProvider`] to do custom actions before Arti initiates
|
||||
//! TCP connections, and after the connections are closed.
|
||||
//!
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
// @@ begin test lint list maintained by maint/add_warning @@
|
||||
#![allow(clippy::print_stderr)]
|
||||
#![allow(clippy::print_stdout)]
|
||||
#![allow(clippy::unwrap_used)]
|
||||
//! <!-- @@ end test lint list maintained by maint/add_warning @@ -->
|
||||
|
||||
use anyhow::Result;
|
||||
use arti_client::{TorClient, TorClientConfig};
|
||||
use tokio_crate as tokio;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
// @@ begin test lint list maintained by maint/add_warning @@
|
||||
#![allow(clippy::print_stderr)]
|
||||
#![allow(clippy::print_stdout)]
|
||||
#![allow(clippy::unwrap_used)]
|
||||
//! <!-- @@ end test lint list maintained by maint/add_warning @@ -->
|
||||
|
||||
use anyhow::Result;
|
||||
use arti_client::{TorClient, TorClientConfig};
|
||||
use tokio_crate as tokio;
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
// @@ begin test lint list maintained by maint/add_warning @@
|
||||
#![allow(clippy::print_stderr)]
|
||||
#![allow(clippy::print_stdout)]
|
||||
#![allow(clippy::unwrap_used)]
|
||||
//! <!-- @@ end test lint list maintained by maint/add_warning @@ -->
|
||||
|
||||
use arti_hyper::*;
|
||||
|
||||
use anyhow::Result;
|
||||
|
|
Loading…
Reference in New Issue