From 0c04b54d4d78f7f3117948358b3d05e644fa1aeb Mon Sep 17 00:00:00 2001 From: Chelsea Holland Komlo Date: Thu, 28 Sep 2017 03:08:37 +0000 Subject: minimize scope for unsafe update documentation missing check for null --- src/rust/external/external.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rust/external') diff --git a/src/rust/external/external.rs b/src/rust/external/external.rs index 0e8d1eb0d8..f3267949c7 100644 --- a/src/rust/external/external.rs +++ b/src/rust/external/external.rs @@ -24,6 +24,6 @@ pub fn c_tor_version_as_new_as(platform: &str, cutoff: &str) -> bool { let result: c_int; unsafe { result = tor_version_as_new_as(c_platform.as_ptr(), c_cutoff.as_ptr()); - result == 1 } + result == 1 } -- cgit v1.2.3-54-g00ecf