##// END OF EJS Templates
rust-clippy: fix remaining warnings in `hg-cpython`
Raphaël Gomès -
r50828:be3b545c default
parent child Browse files
Show More
@@ -103,7 +103,7 b' pub fn combine_changeset_copies_wrapper('
103 103 // thread can drop it. Otherwise the GIL would be implicitly
104 104 // acquired here through `impl Drop for PyBytes`.
105 105 if let Some(bytes) = opt_bytes {
106 if let Err(_) = pybytes_sender.send(bytes.unwrap()) {
106 if pybytes_sender.send(bytes.unwrap()).is_err() {
107 107 // The channel is disconnected, meaning the parent
108 108 // thread panicked or returned
109 109 // early through
@@ -47,6 +47,7 b' fn require_send<T: Send>() {}'
47 47
48 48 #[allow(unused)]
49 49 fn static_assert_pybytes_is_send() {
50 #[allow(clippy::no_effect)]
50 51 require_send::<PyBytes>;
51 52 }
52 53
General Comments 0
You need to be logged in to leave comments. Login now