Skip to content

Commit

Permalink
Remove the doc test
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislav-tkach committed Aug 1, 2022
1 parent b73bb8f commit f915220
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions os_info/src/linux/file_release.rs
Expand Up @@ -54,22 +54,7 @@ fn retrieve(distributions: &[ReleaseInfo], root: &str) -> Option<Info> {
None
}

/// Struct containing information on how to parse distribution info from a
/// release file.
///
/// # Examples
///
/// ```
/// ReleaseInfo {
/// path: "/etc/fedora-release",
/// os_type: |_| Some(Type::Fedora),
/// version: |release| {
/// Matcher::PrefixedVersion { prefix: "release" }
/// .find(&release)
/// .map(Version::from_string)
/// },
/// }
/// ```
/// Struct containing information on how to parse distribution info from a release file.
#[derive(Clone)]
struct ReleaseInfo<'a> {
/// Relative path to the release file this struct corresponds to from root.
Expand Down

0 comments on commit f915220

Please sign in to comment.