Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
svartalf committed Feb 23, 2020
1 parent 18091c5 commit 48075c8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions heim-disk/src/os/mod.rs
@@ -1,11 +1,15 @@
//! OS-specific extensions.

#[cfg(any(unix, doc))]
#[cfg_attr(docsrs, doc(cfg(unix)))]
// TODO: Make these attributes working
//#[cfg(any(unix, doc))]
//#[cfg_attr(docsrs, doc(cfg(unix)))]
#[cfg(unix)]
pub mod unix;

#[cfg(any(target_os = "macos", doc))]
#[cfg_attr(docsrs, doc(cfg(target_os = "macos")))]
// TODO: These too
//#[cfg(any(target_os = "macos", doc))]
//#[cfg_attr(docsrs, doc(cfg(target_os = "macos")))]
#[cfg(target_os = "macos")]
pub mod macos;

// TODO: Add `cfg(doc)` and make in render in any non-Windows OS
Expand Down
2 changes: 1 addition & 1 deletion heim-memory/src/os/mod.rs
@@ -1,6 +1,6 @@
//! OS-specific extensions.

#[cfg(not(windows))]
#[cfg(any(not(target_os = "windows"), doc))]
use heim_common::units::Information;

#[cfg(any(target_os = "linux", doc))]
Expand Down

0 comments on commit 48075c8

Please sign in to comment.