rustfmt: enable format_code_in_doc_comments
This commit is contained in:
parent
5e039204d5
commit
a4dff1ecb8
2 changed files with 11 additions and 9 deletions
|
@ -22,14 +22,16 @@
|
||||||
//!
|
//!
|
||||||
//! ```no_run
|
//! ```no_run
|
||||||
//! use openpgp_card_pcsc::PcscBackend;
|
//! use openpgp_card_pcsc::PcscBackend;
|
||||||
//! use openpgp_card_sequoia::{Card, state::Open};
|
//! use openpgp_card_sequoia::{state::Open, Card};
|
||||||
//!
|
//!
|
||||||
//! # fn main() -> Result<(), Box<dyn std::error::Error>> {
|
//! # fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
//! for backend in PcscBackend::cards(None)? {
|
//! for backend in PcscBackend::cards(None)? {
|
||||||
//! let mut card: Card<Open> = backend.into();
|
//! let mut card: Card<Open> = backend.into();
|
||||||
//! let mut transaction = card.transaction()?;
|
//! let mut transaction = card.transaction()?;
|
||||||
//! println!("Found OpenPGP card with ident '{}'",
|
//! println!(
|
||||||
//! transaction.application_identifier()?.ident());
|
//! "Found OpenPGP card with ident '{}'",
|
||||||
|
//! transaction.application_identifier()?.ident()
|
||||||
|
//! );
|
||||||
//! }
|
//! }
|
||||||
//! # Ok(())
|
//! # Ok(())
|
||||||
//! # }
|
//! # }
|
||||||
|
@ -39,7 +41,7 @@
|
||||||
//!
|
//!
|
||||||
//! ```no_run
|
//! ```no_run
|
||||||
//! use openpgp_card_pcsc::PcscBackend;
|
//! use openpgp_card_pcsc::PcscBackend;
|
||||||
//! use openpgp_card_sequoia::{Card, state::Open};
|
//! use openpgp_card_sequoia::{state::Open, Card};
|
||||||
//!
|
//!
|
||||||
//! # fn main() -> Result<(), Box<dyn std::error::Error>> {
|
//! # fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
//! let backend = PcscBackend::open_by_ident("abcd:01234567", None)?;
|
//! let backend = PcscBackend::open_by_ident("abcd:01234567", None)?;
|
||||||
|
@ -59,8 +61,7 @@
|
||||||
//!
|
//!
|
||||||
//! ```no_run
|
//! ```no_run
|
||||||
//! use openpgp_card_pcsc::PcscBackend;
|
//! use openpgp_card_pcsc::PcscBackend;
|
||||||
//! use openpgp_card_sequoia::{Card, state::Open};
|
//! use openpgp_card_sequoia::{state::Open, Card};
|
||||||
//!
|
|
||||||
//! # fn main() -> Result<(), Box<dyn std::error::Error>> {
|
//! # fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
//! // Open card via PCSC
|
//! // Open card via PCSC
|
||||||
//! use sequoia_openpgp::policy::StandardPolicy;
|
//! use sequoia_openpgp::policy::StandardPolicy;
|
||||||
|
@ -73,7 +74,7 @@
|
||||||
//! let mut user = transaction.user_card().expect("This should not fail");
|
//! let mut user = transaction.user_card().expect("This should not fail");
|
||||||
//!
|
//!
|
||||||
//! // Get decryptor
|
//! // Get decryptor
|
||||||
//! let decryptor = user.decryptor(&|| { println!("Touch confirmation needed for decryption") });
|
//! let decryptor = user.decryptor(&|| println!("Touch confirmation needed for decryption"));
|
||||||
//!
|
//!
|
||||||
//! // Perform decryption operation(s)
|
//! // Perform decryption operation(s)
|
||||||
//! // ..
|
//! // ..
|
||||||
|
@ -95,7 +96,7 @@
|
||||||
//!
|
//!
|
||||||
//! ```no_run
|
//! ```no_run
|
||||||
//! use openpgp_card_pcsc::PcscBackend;
|
//! use openpgp_card_pcsc::PcscBackend;
|
||||||
//! use openpgp_card_sequoia::{Card, state::Open};
|
//! use openpgp_card_sequoia::{state::Open, Card};
|
||||||
//!
|
//!
|
||||||
//! # fn main() -> Result<(), Box<dyn std::error::Error>> {
|
//! # fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
//! // Open card via PCSC
|
//! // Open card via PCSC
|
||||||
|
@ -121,7 +122,7 @@
|
||||||
//!
|
//!
|
||||||
//! ```no_run
|
//! ```no_run
|
||||||
//! use openpgp_card_pcsc::PcscBackend;
|
//! use openpgp_card_pcsc::PcscBackend;
|
||||||
//! use openpgp_card_sequoia::{Card, state::Open};
|
//! use openpgp_card_sequoia::{state::Open, Card};
|
||||||
//!
|
//!
|
||||||
//! # fn main() -> Result<(), Box<dyn std::error::Error>> {
|
//! # fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
//! // Open card via PCSC
|
//! // Open card via PCSC
|
||||||
|
|
|
@ -2,3 +2,4 @@
|
||||||
# SPDX-License-Identifier: CC0-1.0
|
# SPDX-License-Identifier: CC0-1.0
|
||||||
|
|
||||||
group_imports = "StdExternalCrate"
|
group_imports = "StdExternalCrate"
|
||||||
|
format_code_in_doc_comments = true
|
||||||
|
|
Loading…
Reference in a new issue