Skip to content

Commit

Permalink
Address clippy::needless_doctest_main
Browse files Browse the repository at this point in the history
  • Loading branch information
AldaronLau committed Nov 10, 2023
1 parent b053a80 commit 9957d9b
Showing 1 changed file with 36 additions and 38 deletions.
74 changes: 36 additions & 38 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,44 +9,42 @@
//! return [`OsString`]):
//!
//! ```rust
//! fn main() {
//! println!(
//! "User's Name whoami::realname(): {}",
//! whoami::realname(),
//! );
//! println!(
//! "User's Username whoami::username(): {}",
//! whoami::username(),
//! );
//! println!(
//! "User's Language whoami::lang(): {:?}",
//! whoami::lang().collect::<Vec<String>>(),
//! );
//! println!(
//! "Device's Pretty Name whoami::devicename(): {}",
//! whoami::devicename(),
//! );
//! println!(
//! "Device's Hostname whoami::hostname(): {}",
//! whoami::hostname(),
//! );
//! println!(
//! "Device's Platform whoami::platform(): {}",
//! whoami::platform(),
//! );
//! println!(
//! "Device's OS Distro whoami::distro(): {}",
//! whoami::distro(),
//! );
//! println!(
//! "Device's Desktop Env. whoami::desktop_env(): {}",
//! whoami::desktop_env(),
//! );
//! println!(
//! "Device's CPU Arch whoami::arch(): {}",
//! whoami::arch(),
//! );
//! }
//! println!(
//! "User's Name whoami::realname(): {}",
//! whoami::realname(),
//! );
//! println!(
//! "User's Username whoami::username(): {}",
//! whoami::username(),
//! );
//! println!(
//! "User's Language whoami::lang(): {:?}",
//! whoami::lang().collect::<Vec<String>>(),
//! );
//! println!(
//! "Device's Pretty Name whoami::devicename(): {}",
//! whoami::devicename(),
//! );
//! println!(
//! "Device's Hostname whoami::hostname(): {}",
//! whoami::hostname(),
//! );
//! println!(
//! "Device's Platform whoami::platform(): {}",
//! whoami::platform(),
//! );
//! println!(
//! "Device's OS Distro whoami::distro(): {}",
//! whoami::distro(),
//! );
//! println!(
//! "Device's Desktop Env. whoami::desktop_env(): {}",
//! whoami::desktop_env(),
//! );
//! println!(
//! "Device's CPU Arch whoami::arch(): {}",
//! whoami::arch(),
//! );
//! ```

#![warn(
Expand Down

0 comments on commit 9957d9b

Please sign in to comment.