clippy: Add standard test lint block to several examples

This commit is contained in:
Ian Jackson 2022-06-24 13:17:02 +01:00
parent bebf013bef
commit d965dc3f70
5 changed files with 30 additions and 0 deletions

View File

@ -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. // 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 // For most usages, using a combination of TorClient::isolated_client and IsolationToken should
// be enough. // be enough.

View File

@ -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 //! This example showcases using a custom [`TcpProvider`] to do custom actions before Arti initiates
//! TCP connections, and after the connections are closed. //! TCP connections, and after the connections are closed.
//! //!

View File

@ -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 anyhow::Result;
use arti_client::{TorClient, TorClientConfig}; use arti_client::{TorClient, TorClientConfig};
use tokio_crate as tokio; use tokio_crate as tokio;

View File

@ -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 anyhow::Result;
use arti_client::{TorClient, TorClientConfig}; use arti_client::{TorClient, TorClientConfig};
use tokio_crate as tokio; use tokio_crate as tokio;

View File

@ -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 arti_hyper::*;
use anyhow::Result; use anyhow::Result;