equal
deleted
inserted
replaced
45 |
45 |
46 fn require_send<T: Send>() {} |
46 fn require_send<T: Send>() {} |
47 |
47 |
48 #[allow(unused)] |
48 #[allow(unused)] |
49 fn static_assert_pybytes_is_send() { |
49 fn static_assert_pybytes_is_send() { |
|
50 #[allow(clippy::no_effect)] |
50 require_send::<PyBytes>; |
51 require_send::<PyBytes>; |
51 } |
52 } |
52 |
53 |
53 // Safety: PyBytes is Send. Raw pointers are not by default, |
54 // Safety: PyBytes is Send. Raw pointers are not by default, |
54 // but here sending one to another thread is fine since we ensure it stays |
55 // but here sending one to another thread is fine since we ensure it stays |