rust/hg-cpython/src/pybytes_deref.rs
changeset 49933 be3b545c5cff
parent 47954 4afd6cc447b9
child 52163 7346f93be7a4
equal deleted inserted replaced
49932:136aa80aa8b2 49933:be3b545c5cff
    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