From c0f960432b5649bbd6e1e771f6d01d0d04c9acbf Mon Sep 17 00:00:00 2001 From: Todd Martin Date: Wed, 18 May 2022 18:52:23 -0700 Subject: [PATCH] Change generic OK to return Type::FreeBSD --- os_info/src/freebsd/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os_info/src/freebsd/mod.rs b/os_info/src/freebsd/mod.rs index d7219521..09c8dbe8 100644 --- a/os_info/src/freebsd/mod.rs +++ b/os_info/src/freebsd/mod.rs @@ -37,7 +37,7 @@ fn get_os() -> Type { .expect("Failed to check if is hardened"); match str::from_utf8(&check_hardening.stderr) { Ok("0\n") => Type::HardenedBSD, - Ok(_) => Type::Unknown, + Ok(_) => Type::FreeBSD, Err(_) => Type::FreeBSD, } }