aboutsummaryrefslogtreecommitdiff
path: root/src/rust/external
diff options
context:
space:
mode:
authorChelsea Holland Komlo <me@chelseakomlo.com>2017-09-28 03:08:37 +0000
committerNick Mathewson <nickm@torproject.org>2017-10-27 10:02:08 -0400
commit0c04b54d4d78f7f3117948358b3d05e644fa1aeb (patch)
tree6c554a44f392a4fd0845e5c466955c43cdcea002 /src/rust/external
parentd1820c1516a31a149fc51a9e5126bf899e4c4e08 (diff)
downloadtor-0c04b54d4d78f7f3117948358b3d05e644fa1aeb.tar.gz
tor-0c04b54d4d78f7f3117948358b3d05e644fa1aeb.zip
minimize scope for unsafe
update documentation missing check for null
Diffstat (limited to 'src/rust/external')
-rw-r--r--src/rust/external/external.rs2
1 files changed, 1 insertions, 1 deletions
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
}