Prechádzať zdrojové kódy

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 rokov pred
rodič
commit
fd127bfbfa
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      src/rust/protover/ffi.rs

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

@@ -218,7 +218,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 };
 }