From b73bb8f49dd856f5d8acac373156afd0f29861b0 Mon Sep 17 00:00:00 2001 From: Stanislav Tkach Date: Sun, 31 Jul 2022 11:36:29 +0200 Subject: [PATCH] Remove ignored doc-tests --- os_info/src/linux/file_release.rs | 27 ++++----------------------- 1 file changed, 4 insertions(+), 23 deletions(-) diff --git a/os_info/src/linux/file_release.rs b/os_info/src/linux/file_release.rs index 0cebba1d..44c7fa65 100644 --- a/os_info/src/linux/file_release.rs +++ b/os_info/src/linux/file_release.rs @@ -57,8 +57,9 @@ fn retrieve(distributions: &[ReleaseInfo], root: &str) -> Option { /// Struct containing information on how to parse distribution info from a /// release file. /// -/// # Example -/// ```rust,ignore +/// # Examples +/// +/// ``` /// ReleaseInfo { /// path: "/etc/fedora-release", /// os_type: |_| Some(Type::Fedora), @@ -67,37 +68,17 @@ fn retrieve(distributions: &[ReleaseInfo], root: &str) -> Option { /// .find(&release) /// .map(Version::from_string) /// }, -/// }, +/// } /// ``` #[derive(Clone)] struct ReleaseInfo<'a> { /// Relative path to the release file this struct corresponds to from root. - /// - /// # Example - /// ```rust,ignore - /// path: "etc/os-release" - /// ``` path: &'a str, /// A closure that determines the os type from the release file contents. - /// - /// # Example - /// ```rust,ignore - /// //path: "/etc/mariner-release", - /// os_type: |_| Some(Type::Mariner), - /// ``` os_type: for<'b> fn(&'b str) -> Option, /// A closure that determines the os version from the release file contents. - /// - /// # Example - /// ```rust,ignore - /// version: |release| { - /// Matcher::KeyValue { key: "VERSION_ID" } - /// .find(&release) - /// .map(Version::from_string) - /// }, - /// ``` version: for<'b> fn(&'b str) -> Option, }