Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislav-tkach committed Jan 29, 2023
1 parent 7fc22cb commit 5377003
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ os_info = { version = "3", default-features = false }
let info = os_info::get();

// Print full information:
println!("OS information: {}", info);
println!("OS information: {info}");

// Print information separately:
println!("Type: {}", info.os_type());
Expand Down
2 changes: 1 addition & 1 deletion os_info/examples/print_version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ fn main() {
let info = os_info::get();

// Print full information:
println!("OS information: {}", info);
println!("OS information: {info}");

// Print information separately:
println!("Type: {}", info.os_type());
Expand Down
2 changes: 1 addition & 1 deletion os_info/src/info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ use super::{Bitness, Type, Version};
/// use os_info;
///
/// let info = os_info::get();
/// println!("OS information: {}", info);
/// println!("OS information: {info}");
/// ```
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
Expand Down
4 changes: 2 additions & 2 deletions os_info/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
missing_debug_implementations,
missing_docs,
unsafe_code,
missing_doc_code_examples
rustdoc::missing_doc_code_examples
)]

#[cfg(target_os = "android")]
Expand Down Expand Up @@ -97,7 +97,7 @@ pub use crate::{bitness::Bitness, info::Info, os_type::Type, version::Version};
/// let info = os_info::get();
///
/// // Print full information:
/// println!("OS information: {}", info);
/// println!("OS information: {info}");
///
/// // Print information separately:
/// println!("Type: {}", info.os_type());
Expand Down

0 comments on commit 5377003

Please sign in to comment.