瀏覽代碼

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()`.
Isis Lovecruft 6 年之前
父節點
當前提交
9766d53cf9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/rust/protover/ffi.rs

+ 1 - 1
src/rust/protover/ffi.rs

@@ -204,7 +204,7 @@ pub extern "C" fn protover_is_supported_here(
         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 };
 }