[tor-commits] [tor/master] rust: Refactor Rust implementation of protover_is_supported_here().
commit fd127bfbfa13d407e5fb5d22a567f51a30af4c2e Author: Isis LovecruftDate: Wed Mar 21 03:08:35 2018 + 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()`. --- src/rust/protover/ffi.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rust/protover/ffi.rs b/src/rust/protover/ffi.rs index 13d64821f..3632f5de8 100644 --- a/src/rust/protover/ffi.rs +++ b/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(, ); return if is_supported { 1 } else { 0 }; } ___ tor-commits mailing list tor-commits@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits
[tor-commits] [tor/master] rust: Refactor Rust implementation of protover_is_supported_here().
commit 9766d53cf990432f25fb70916fe9b165f1d4a36d Author: Isis LovecruftDate: Wed Mar 21 03:08:35 2018 + 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()`. --- src/rust/protover/ffi.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rust/protover/ffi.rs b/src/rust/protover/ffi.rs index 780fe6963..44c65114e 100644 --- a/src/rust/protover/ffi.rs +++ b/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(, ); return if is_supported { 1 } else { 0 }; } ___ tor-commits mailing list tor-commits@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits