use crate::Result;
#[allow(clippy::unnecessary_wraps)]
pub fn check_os() -> Result<()> {
#[cfg(target_os = "linux")]
{
Ok(())
}
#[cfg(not(target_os = "linux"))]
{
let os = std::env::consts::OS;
Err(RaplError::UnsupportedOS(os.to_string()).into())
}
}