Skip to content

Commit

Permalink
wrap in result
Browse files Browse the repository at this point in the history
  • Loading branch information
TorchedSammy committed Sep 27, 2020
1 parent 7696717 commit 12ff191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ pub fn kernel() -> Result<String, ()> {

#[cfg(target_family = "unix")]
pub fn de() -> Result<String, ()> {
"Unknown".to_string()
Ok("Unknown".to_string())
}

#[cfg(target_family = "windows")]
Expand Down

0 comments on commit 12ff191

Please sign in to comment.