rust: Refactor Rust implementation of protover_is_supported_here().

It was changed to take borrows instead of taking ownership.

 * REFACTOR `protover::ffi::protover_is_supported_here()` to use changed method
   signature on `protover::is_supported_here()`.
This commit is contained in:
Isis Lovecruft 2018-03-21 03:08:35 +00:00
parent 6f252e0986
commit 9766d53cf9
No known key found for this signature in database
GPG Key ID: B8938BC5E86C046F

View File

@ -204,7 +204,7 @@ pub extern "C" fn protover_is_supported_here(
Err(_) => return 0, Err(_) => return 0,
}; };
let is_supported = is_supported_here(protocol, version); let is_supported = is_supported_here(&protocol, &version);
return if is_supported { 1 } else { 0 }; return if is_supported { 1 } else { 0 };
} }