105  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
106  | 
              
                #[inline]
                  
                 | 
            
111  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
112  | 
              
                #[inline]
                 | 
            
25  | 
              
                    /// [HTTP status code]: `actix_web::http::StatusCode`
                 | 
            
26  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
27  | 
              
                    pub fn status_code(&self) -> StatusCode {
                  
                 | 
            
35  | 
              
                    #[doc(hidden)]
                 | 
            
36  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
37  | 
              
                    pub fn as_str(&self) -> &str {
                 | 
            
26  | 
              
                    /// [HTTP status code]: `actori_web::http::StatusCode`
                 | 
            
27  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
28  | 
              
                    pub fn status_code(&self) -> StatusCode {
                  
                 | 
            
36  | 
              
                    #[doc(hidden)]
                 | 
            
37  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
38  | 
              
                    pub fn as_str(&self) -> &str {
                 | 
            
62  | 
              
                /// ```
                 | 
            
63  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
64  | 
              
                pub fn resize(
                  
                 | 
            
96  | 
              
                /// ```
                 | 
            
97  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
98  | 
              
                pub fn insert(
                  
                 | 
            
128  | 
              
                /// ```
                 | 
            
129  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
130  | 
              
                pub fn remove(
                  
                 | 
            
162  | 
              
                /// ```
                 | 
            
163  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
164  | 
              
                pub fn set(
                  
                 | 
            
190  | 
              
                /// ```
                 | 
            
191  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
192  | 
              
                pub fn or(
                 | 
            
25  | 
              
                /// Create expression that writes key/value item to map bin.
                 | 
            
26  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
27  | 
              
                pub fn put(
                  
                 | 
            
55  | 
              
                /// Create expression that writes each map item to map bin.
                 | 
            
56  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
57  | 
              
                pub fn put_items(
                  
                 | 
            
83  | 
              
                /// Valid only for numbers.
                 | 
            
84  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
85  | 
              
                pub fn increment(
                 | 
            
194  | 
              
                /// map policy.
                 | 
            
195  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
196  | 
              
                pub(crate) const fn map_write_op(policy: &MapPolicy, multi: bool) -> CdtMapOpType {
                  
                 | 
            
220  | 
              
                }
                 | 
            
221  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
222  | 
              
                const fn map_order_arg(policy: &MapPolicy) -> Option<CdtArgument> {
                 | 
            
442  | 
              
                        fn test(_: impl Condition<()>) {}
                 | 
            
443  | 
              
                        #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
444  | 
              
                        fn foo(_err: &()) -> bool {
                 | 
            
180  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)] // needs to match signature for use in serde attribute
                 | 
            
181  | 
              
                    #[inline]
                 | 
            
5  | 
              
                /// Trait that defines the *Joint* server capabilities.
                 | 
            
6  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)] // TODO remove when all joints get implemented
                 | 
            
7  | 
              
                pub trait JointPhysicsServerTrait<N: crate::PtReal> {
                 | 
            
545  | 
              
                /// limit of RETRIEVAL_INITIAL_TIMEOUT*(2^RETRIEVAL_MAX_EXP)
                 | 
            
546  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
547  | 
              
                fn retrieval_timeout(attempt: u32) -> Duration {
                 | 
            
7  | 
              
                    /// This needs to be run before any of the logging macros work. Such as `log::debug!`, `warn!`, `info!`.
                 | 
            
8  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
9  | 
              
                    pub fn activate(&'static self) {
                 | 
            
186  | 
              
                        any.tag().assert_eq(Self::TAG)?;
                 | 
            
187  | 
              
                        #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
188  | 
              
                        fn is_visible(b: &u8) -> bool {
                 | 
            
8  | 
              
                    fn test_valid_charset(i: &[u8]) -> Result<()> {
                 | 
            
9  | 
              
                        #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
10  | 
              
                        fn is_numeric(b: &u8) -> bool {
                 | 
            
9  | 
              
                        // Argument must be a reference, because of the .iter().all(F) call below
                 | 
            
10  | 
              
                        #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
11  | 
              
                        fn is_printable(b: &u8) -> bool {
                 | 
            
8  | 
              
                    fn test_valid_charset(i: &[u8]) -> Result<()> {
                 | 
            
9  | 
              
                        #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
10  | 
              
                        fn is_visible(b: &u8) -> bool {
                 | 
            
8  | 
              
                    fn test_valid_charset(i: &[u8]) -> Result<()> {
                 | 
            
9  | 
              
                        #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
10  | 
              
                        fn is_visible(b: &u8) -> bool {
                 | 
            
8  | 
              
                    fn test_valid_charset(i: &[u8]) -> Result<()> {
                 | 
            
9  | 
              
                        #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
10  | 
              
                        fn is_visible(b: &u8) -> bool {
                 | 
            
146  | 
              
                        any.tag().assert_eq(Self::TAG)?;
                 | 
            
147  | 
              
                        #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
148  | 
              
                        fn is_visible(b: &u8) -> bool {
                 | 
            
116  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
117  | 
              
                    pub fn serialize<S: Serializer>(v: &Option<Mode>, serializer: S) -> Result<S::Ok, S::Error> {
                  
                 | 
            
160  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
161  | 
              
                    pub fn serialize<S: Serializer>(v: &Option<u32>, serializer: S) -> Result<S::Ok, S::Error> {
                 | 
            
154  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
155  | 
              
                    pub fn serialize<S: Serializer>(v: &bool, serializer: S) -> Result<S::Ok, S::Error> {
                 | 
            
151  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
152  | 
              
                    pub(crate) fn serialize<S>(v: &StatusCode, serializer: S) -> Result<S::Ok, S::Error>
                 | 
            
102  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
103  | 
              
                    async fn resolve(
                  
                 | 
            
170  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
171  | 
              
                    async fn resolve(
                  
                 | 
            
217  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
218  | 
              
                    async fn resolve(
                 | 
            
30  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
31  | 
              
                fn serialize_function<S>(
                 | 
            
99  | 
              
                    /// Writes 6-byte user data buffer into the chip.
                 | 
            
100  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)] // On 32-bit ARMs it is not efficient to pass by value
                 | 
            
101  | 
              
                    pub fn write_onchip_buffer(&mut self, bytes: &[u8; 6]) -> OperationResult<E> {
                 | 
            
25  | 
              
                    /// Returns milliVolts value.
                 | 
            
26  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)] // On 32-bit ARMs it is not efficient to pass by value
                 | 
            
27  | 
              
                    pub fn as_millivolts(&self) -> u16 {
                  
                 | 
            
31  | 
              
                    /// Returns volts value.
                 | 
            
32  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)] // On 32-bit ARMs it is not efficient to pass by value
                 | 
            
33  | 
              
                    pub fn as_volts(&self) -> f32 {
                  
                 | 
            
37  | 
              
                    /// Returns raw ADC reading value.
                 | 
            
38  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)] // On 32-bit ARMs it is not efficient to pass by value
                 | 
            
39  | 
              
                    pub fn raw(&self) -> u16 {
                  
                 | 
            
59  | 
              
                    /// Returns milliAmperes value.
                 | 
            
60  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)] // On 32-bit ARMs it is not efficient to pass by value
                 | 
            
61  | 
              
                    pub fn as_milliamps(&self) -> f32 {
                  
                 | 
            
65  | 
              
                    /// Returns Amperes value.
                 | 
            
66  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)] // On 32-bit ARMs it is not efficient to pass by value
                 | 
            
67  | 
              
                    pub fn as_amperes(&self) -> f32 {
                 | 
            
273  | 
              
                    pub fn debug_details(f: &mut fmt::Formatter<'_>, event: &Event) -> fmt::Result {
                 | 
            
274  | 
              
                        #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
275  | 
              
                        fn check_events(got: &u32, want: &libc::c_int) -> bool {
                 | 
            
471  | 
              
                        #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
472  | 
              
                        fn check_flag(got: &Flags, want: &Flags) -> bool {
                  
                 | 
            
502  | 
              
                        #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
503  | 
              
                        fn check_fflag(got: &u32, want: &u32) -> bool {
                 | 
            
90  | 
              
                pub fn debug_details(f: &mut fmt::Formatter<'_>, event: &Event) -> fmt::Result {
                 | 
            
91  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
92  | 
              
                    fn check_flags(got: &u32, want: &u32) -> bool {
                 | 
            
452  | 
              
                    /// Returns the number of octets of the encoded form of the tag.
                 | 
            
453  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)] // for possible multi-byte tags
                 | 
            
454  | 
              
                    pub fn encoded_len(&self) -> usize {
                  
                 | 
            
469  | 
              
                    /// constructed encoding and primitive encoding otherwise.
                 | 
            
470  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)] // for possible multi-byte tags
                 | 
            
471  | 
              
                    pub fn write_encoded<W: io::Write>(
                 | 
            
95  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)] // lyon takes &FillOptions
                 | 
            
96  | 
              
                fn fill(
                  
                 | 
            
111  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)] // lyon takes &StrokeOptions
                 | 
            
112  | 
              
                fn stroke(
                 | 
            
154  | 
              
                    /// The state of the given pointer
                 | 
            
155  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
156  | 
              
                    pub fn pointer(&self, id: &PointerId) -> Option<&PointerState> {
                 | 
            
148  | 
              
                    #[must_use]
                 | 
            
149  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
150  | 
              
                    pub fn distance(&self, other: &Self) -> u32 {
                  
                 | 
            
246  | 
              
                    #[must_use]
                 | 
            
247  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
248  | 
              
                    pub fn distance(&self, other: &Self) -> u32 {
                 | 
            
116  | 
              
                    // this &Option reference is intentional, the API requires it
                 | 
            
117  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
118  | 
              
                    pub fn serialize<S>(date: &Option<&BodhiDate>, serializer: S) -> Result<S::Ok, S::Error>
                  
                 | 
            
147  | 
              
                    // this &Option reference is intentional, the API requires it
                 | 
            
148  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
149  | 
              
                    pub fn serialize<S>(date: &Option<BodhiDate>, serializer: S) -> Result<S::Ok, S::Error>
                 | 
            
95  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
96  | 
              
                pub(crate) fn serialize_registry_auth_from<S>(
                  
                 | 
            
110  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
111  | 
              
                fn serialize_rollback<S>(rollback: &bool, s: S) -> Result<S::Ok, S::Error>
                 | 
            
28  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
29  | 
              
                    pub fn as_raw(&self) -> c_int {
                 | 
            
67  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
68  | 
              
                    pub fn as_ptr(&self) -> *const ffi::EVP_MD {
                  
                 | 
            
72  | 
              
                    /// The size of the digest in bytes.
                 | 
            
73  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
74  | 
              
                    pub fn size(&self) -> usize {
                  
                 | 
            
78  | 
              
                    /// The name of the digest.
                 | 
            
79  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
80  | 
              
                    pub fn type_(&self) -> Nid {
                 | 
            
57  | 
              
                    /// Return the integer representation of a `Nid`.
                 | 
            
58  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
59  | 
              
                    pub fn as_raw(&self) -> c_int {
                  
                 | 
            
65  | 
              
                    /// This corresponds to `OBJ_find_sigid_algs`.
                 | 
            
66  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
67  | 
              
                    pub fn signature_algorithms(&self) -> Option<SignatureAlgorithms> {
                  
                 | 
            
85  | 
              
                    /// [`OBJ_nid2ln`]: https://www.openssl.org/docs/man1.1.0/crypto/OBJ_nid2ln.html
                 | 
            
86  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
87  | 
              
                    pub fn long_name(&self) -> Result<&'static str, ErrorStack> {
                  
                 | 
            
97  | 
              
                    /// [`OBJ_nid2sn`]: https://www.openssl.org/docs/man1.1.0/crypto/OBJ_nid2sn.html
                 | 
            
98  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
99  | 
              
                    pub fn short_name(&self) -> Result<&'static str, ErrorStack> {
                 | 
            
90  | 
              
                    /// Returns the integer representation of the `Id`.
                 | 
            
91  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
92  | 
              
                    pub fn as_raw(&self) -> c_int {
                 | 
            
73  | 
              
                    /// Returns the integer representation of `Padding`.
                 | 
            
74  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
75  | 
              
                    pub fn as_raw(&self) -> c_int {
                 | 
            
40  | 
              
                /// structs, because the types get too complicated.
                 | 
            
41  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
42  | 
              
                fn all_except_tasks(pod: &&Pod) -> bool {
                 | 
            
167  | 
              
                    /// This corresponds to [`async_std::net::UdpSocket::join_multicast_v4`].
                 | 
            
168  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
169  | 
              
                    #[inline]
                  
                 | 
            
176  | 
              
                    /// This corresponds to [`async_std::net::UdpSocket::join_multicast_v6`].
                 | 
            
177  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
178  | 
              
                    #[inline]
                  
                 | 
            
185  | 
              
                    /// This corresponds to [`async_std::net::UdpSocket::leave_multicast_v4`].
                 | 
            
186  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
187  | 
              
                    #[inline]
                  
                 | 
            
194  | 
              
                    /// This corresponds to [`async_std::net::UdpSocket::leave_multicast_v6`].
                 | 
            
195  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
196  | 
              
                    #[inline]
                 | 
            
205  | 
              
                    /// This corresponds to [`std::net::UdpSocket::join_multicast_v4`].
                 | 
            
206  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
207  | 
              
                    #[inline]
                  
                 | 
            
214  | 
              
                    /// This corresponds to [`std::net::UdpSocket::join_multicast_v6`].
                 | 
            
215  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
216  | 
              
                    #[inline]
                  
                 | 
            
223  | 
              
                    /// This corresponds to [`std::net::UdpSocket::leave_multicast_v4`].
                 | 
            
224  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
225  | 
              
                    #[inline]
                  
                 | 
            
232  | 
              
                    /// This corresponds to [`std::net::UdpSocket::leave_multicast_v6`].
                 | 
            
233  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
234  | 
              
                    #[inline]
                 | 
            
252  | 
              
                    /// Returns the bitmask corresponding to this capability value.
                 | 
            
253  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
254  | 
              
                    pub fn bitmask(&self) -> u64 {
                  
                 | 
            
258  | 
              
                    /// Returns the index of this capability, i.e. its kernel-defined value.
                 | 
            
259  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
260  | 
              
                    pub fn index(&self) -> u8 {
                 | 
            
103  | 
              
                    /// Returns the raw value needed for FFI calls.
                 | 
            
104  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
105  | 
              
                    #[inline]
                  
                 | 
            
138  | 
              
                    /// Returns the ID of the socket the core is on.
                 | 
            
139  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
140  | 
              
                    #[inline]
                  
                 | 
            
145  | 
              
                    /// Returns the raw value.
                 | 
            
146  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
147  | 
              
                    #[inline]
                  
                 | 
            
152  | 
              
                    /// Sets the current thread's affinity to this core.
                 | 
            
153  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
154  | 
              
                    #[inline]
                 | 
            
58  | 
              
                    /// Returns the raw value needed for FFI calls.
                 | 
            
59  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
60  | 
              
                    #[inline]
                  
                 | 
            
77  | 
              
                    /// Returns the raw value needed for FFI calls.
                 | 
            
78  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref, dead_code)]
                 | 
            
79  | 
              
                    #[inline]
                  
                 | 
            
90  | 
              
                    /// Returns the raw value needed for FFI calls.
                 | 
            
91  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref, dead_code)]
                 | 
            
92  | 
              
                    #[inline]
                 | 
            
39  | 
              
                    /// Returns the six bytes the MAC address consists of.
                 | 
            
40  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
41  | 
              
                    pub fn octets(&self) -> [u8; 6] {
                 | 
            
385  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
386  | 
              
                impl VlanTag {
                 | 
            
7  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
8  | 
              
                #[handler]
                 | 
            
51  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
52  | 
              
                    #[async_trait]
                 | 
            
14  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
15  | 
              
                #[handler]
                 | 
            
31  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
32  | 
              
                fn is_false(v: &bool) -> bool {
                 | 
            
56  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)] //TODO: remove attr after switch to SemVer
                 | 
            
57  | 
              
                    pub fn value(&self) -> SemVer {
                 | 
            
49  | 
              
                    }
                 | 
            
50  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
51  | 
              
                    pub fn get(&self, slot: &Slot) -> Option<&Hash> {
                 | 
            
82  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
83  | 
              
                fn is_false(val: &bool) -> bool {
                 | 
            
273  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
274  | 
              
                    pub fn join_multicast_v4(&self, multiaddr: &Ipv4Addr, interface: &Ipv4Addr) -> io::Result<()> {
                  
                 | 
            
282  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
283  | 
              
                    pub fn leave_multicast_v4(&self, multiaddr: &Ipv4Addr, interface: &Ipv4Addr) -> io::Result<()> {
                 | 
            
78  | 
              
                #[completion(crate = crate)]
                 | 
            
79  | 
              
                #[allow(single_use_lifetimes, clippy::trivially_copy_pass_by_ref)]
                 | 
            
80  | 
              
                async fn lifetimes_async<'a, 'b, T>(x: &'a T, y: &&&String, z: &mut Cow<'a, str>) -> &'a T {
                  
                 | 
            
97  | 
              
                    #[completion(crate = crate)]
                 | 
            
98  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
99  | 
              
                    async fn method(&self, param: &'static i32) -> impl Clone {
                 | 
            
16  | 
              
                /// things.
                 | 
            
17  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
18  | 
              
                pub fn is_false(b: &bool) -> bool {
                 | 
            
34  | 
              
                /// This trivial function exists as a predicate for serde.
                 | 
            
35  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
36  | 
              
                pub(crate) fn zero_u32(a: &u32) -> bool {
                  
                 | 
            
42  | 
              
                /// This trivial function exists as a predicate for serde.
                 | 
            
43  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
44  | 
              
                pub(crate) fn zero_u64(a: &u64) -> bool {
                 | 
            
98  | 
              
                #[cfg(test)]
                 | 
            
99  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
100  | 
              
                mod test;
                 | 
            
29  | 
              
                    // `Option::filter`, which passes all args by ref.
                 | 
            
30  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
31  | 
              
                    pub fn test_poor_mans_discriminant(discriminant: &u8) -> bool {
                 | 
            
1454  | 
              
                #[stable(feature = "simd_x86", since = "1.27.0")]
                 | 
            
1455  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
1456  | 
              
                pub unsafe fn _mm256_broadcast_ss(f: &f32) -> __m256 {
                  
                 | 
            
1467  | 
              
                #[stable(feature = "simd_x86", since = "1.27.0")]
                 | 
            
1468  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
1469  | 
              
                pub unsafe fn _mm_broadcast_ss(f: &f32) -> __m128 {
                  
                 | 
            
1480  | 
              
                #[stable(feature = "simd_x86", since = "1.27.0")]
                 | 
            
1481  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
1482  | 
              
                pub unsafe fn _mm256_broadcast_sd(f: &f64) -> __m256d {
                 | 
            
643  | 
              
                #[allow(missing_docs)]
                 | 
            
644  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
645  | 
              
                impl SectorInformation {
                 | 
            
273  | 
              
                    /// ```
                 | 
            
274  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
275  | 
              
                    pub fn demangle(
                  
                 | 
            
294  | 
              
                    /// syntactic structure.
                 | 
            
295  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
296  | 
              
                    pub fn structured_demangle<W: DemangleWrite>(
                 | 
            
359  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
360  | 
              
                    fn is_all_ref(&self) -> bool {
                 | 
            
102  | 
              
                    ///
                 | 
            
103  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
104  | 
              
                    pub fn new(val: f64) -> SharedValue {
                 | 
            
27  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
28  | 
              
                    pub fn deserialize(data: &[u8]) -> PayloadId {
                 | 
            
704  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
705  | 
              
                    pub(crate) fn create_linear_gradient(
                  
                 | 
            
866  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
867  | 
              
                    pub(crate) fn draw_bitmap(
                 | 
            
465  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
466  | 
              
                    pub fn serialize<S>(value: &Option<Color>, serializer: S) -> Result<S::Ok, S::Error>
                 | 
            
119  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
120  | 
              
                    fn not(bool: &bool) -> bool {
                 | 
            
18  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
19  | 
              
                    pub fn octets(&self) -> [u8; 4] {
                 | 
            
43  | 
              
                    }
                 | 
            
44  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
45  | 
              
                    pub fn get(&self, slot: &Slot) -> Option<&Hash> {
                 | 
            
43  | 
              
                    }
                 | 
            
44  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
45  | 
              
                    pub fn get(&self, slot: &Slot) -> Option<&Hash> {
                 | 
            
13  | 
              
                /// the implementation.
                 | 
            
14  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
15  | 
              
                pub trait Allocator: Sized {
                 | 
            
45  | 
              
                  /// Yields from the enclosing stackful fiber.
                 | 
            
46  | 
              
                  #[cfg_attr(feature = "cargo-clippy", allow(trivially_copy_pass_by_ref))]
                 | 
            
47  | 
              
                  pub fn stack_yield(&self, output: Y) -> I {
                 | 
            
198  | 
              
                /// are unique to backspace.
                 | 
            
199  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
200  | 
              
                pub fn offset_for_delete_backwards(region: &Selection, text: &impl EditableText) -> usize {
                 | 
            
85  | 
              
                }
                 | 
            
86  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
87  | 
              
                fn same_sign(one: &f64, two: &f64) -> bool {
                 | 
            
82  | 
              
                }
                 | 
            
83  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
84  | 
              
                fn same_sign(one: &f64, two: &f64) -> bool {
                 | 
            
1192  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
1193  | 
              
                    pub fn handle_destroy_notify(&self, _destroy_notify: &xproto::DestroyNotifyEvent) {
                 | 
            
966  | 
              
                      fn outer(self) -> Self::Ret {
                 | 
            
967  | 
              
                        #[cfg_attr(feature = "cargo-clippy", allow(trivially_copy_pass_by_ref))]
                 | 
            
968  | 
              
                        fn is_outer(attr: &&Attribute) -> bool {
                  
                 | 
            
977  | 
              
                      fn inner(self) -> Self::Ret {
                 | 
            
978  | 
              
                        #[cfg_attr(feature = "cargo-clippy", allow(trivially_copy_pass_by_ref))]
                 | 
            
979  | 
              
                        fn is_inner(attr: &&Attribute) -> bool {
                 | 
            
131  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
132  | 
              
                fn is_true(boolean: &bool) -> bool {
                 | 
            
30  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
31  | 
              
                fn serialize_function<S>(
                 | 
            
27  | 
              
                /// This is only used for serialize
                 | 
            
28  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
29  | 
              
                fn is_zero(num: &u32) -> bool {
                 | 
            
162  | 
              
                    /// Constructor, note key and IV length are compile-time enforced.
                 | 
            
163  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
164  | 
              
                    pub fn new(key: &[u8; E128_KEY_LEN], iv: &[u8; E128_IV_LEN]) -> Enocoro128 {
                  
                 | 
            
218  | 
              
                    /// For usecases where the entirety of the plaintext or ciphertext is in-memory at once.
                 | 
            
219  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
220  | 
              
                    pub fn apply_keystream_static(
                 | 
            
226  | 
              
                impl<'a> BloomRef<'a> {
                 | 
            
227  | 
              
                	#[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
228  | 
              
                	pub fn is_empty(&self) -> bool {
                  
                 | 
            
232  | 
              
                	#[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
233  | 
              
                	pub fn contains_input(&self, input: Input<'_>) -> bool {
                  
                 | 
            
238  | 
              
                	#[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
239  | 
              
                	pub fn contains_bloom<'b, B>(&self, bloom: B) -> bool
                  
                 | 
            
256  | 
              
                	#[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
257  | 
              
                	pub fn data(&self) -> &'a [u8; BLOOM_SIZE] {
                 | 
            
606  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
607  | 
              
                fn is_false(val: &bool) -> bool {
                 | 
            
27  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
28  | 
              
                    pub fn deserialize(data: &[u8; 4]) -> PayloadId {
                 | 
            
64  | 
              
                impl MigrationTransition {
                 | 
            
65  | 
              
                    #[allow(clippy::wrong_self_convention, clippy::trivially_copy_pass_by_ref)]
                 | 
            
66  | 
              
                    fn to_pb(value: &Option<Self>) -> PbMigrationTransition {
                 | 
            
150  | 
              
                impl ExplorerFactory {
                 | 
            
151  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
152  | 
              
                    fn new_instance(&self) -> Box<dyn Service> {
                 | 
            
314  | 
              
                    // This function is used by serde, which requires the target be a ref.
                 | 
            
315  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
316  | 
              
                    fn is_default(&self) -> bool {
                 | 
            
293  | 
              
                    #[cfg(feature="unsafe-vars")]
                 | 
            
294  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
295  | 
              
                    pub unsafe fn add_unsafe_var(&mut self, name:String, ptr:&f64) {
                 | 
            
303  | 
              
                    #[cfg(feature = "unsafe-vars")]
                 | 
            
304  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
305  | 
              
                    pub unsafe fn add_unsafe_var(&mut self, name: String, ptr: &f64) {
                 | 
            
71  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)] // As this is imposed on us by serde
                 | 
            
72  | 
              
                fn is_default_array_order(order: &i32) -> bool {
                  
                 | 
            
76  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)] // As this is imposed on us by serde
                 | 
            
77  | 
              
                fn is_not_generic(generic: &bool) -> bool {
                 | 
            
40  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)] // As this is imposed on us by serde
                 | 
            
41  | 
              
                fn is_default_array_level_serde(order: &i32) -> bool {
                  
                 | 
            
49  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)] // As this is imposed on us by serde
                 | 
            
50  | 
              
                fn is_not_generic(generic: &bool) -> bool {
                 | 
            
395  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
396  | 
              
                fn glfw_error_callback(error: glfw::Error, description: String, _: &()) {
                 | 
            
70  | 
              
                impl LinkResolver for () {
                 | 
            
71  | 
              
                    #[allow(unused_variables, clippy::trivially_copy_pass_by_ref)]
                 | 
            
72  | 
              
                    async fn load_link(&mut self, link: &Cid) -> Result<Option<Ipld>, String> {
                 | 
            
269  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
270  | 
              
                    pub fn serialize<S>(value: &[u8; NODE_ID_SIZE], serializer: S) -> Result<S::Ok, S::Error>
                 | 
            
71  | 
              
                    // pointer. See https://github.com/godot-rust/godot-rust/issues/562.
                 | 
            
72  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
73  | 
              
                    pub fn sys(&self) -> *const sys::godot_rid {
                 | 
            
350  | 
              
                    #[inline]
                 | 
            
351  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
352  | 
              
                    pub unsafe fn is_instance_sane(&self) -> bool {
                 | 
            
582  | 
              
                    #[inline]
                 | 
            
583  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
584  | 
              
                    pub unsafe fn is_instance_sane(&self) -> bool {
                  
                 | 
            
599  | 
              
                    #[inline]
                 | 
            
600  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
601  | 
              
                    pub unsafe fn assume_safe_if_sane<'a>(&self) -> Option<TRef<'a, T, Shared>> {
                 | 
            
25  | 
              
                    }
                 | 
            
26  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
27  | 
              
                    pub fn get(&self, slot: &Slot) -> Option<&Hash> {
                 | 
            
22  | 
              
                impl StakeHistory {
                 | 
            
23  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
24  | 
              
                    pub fn get(&self, epoch: &Epoch) -> Option<&StakeHistoryEntry> {
                 | 
            
101  | 
              
                impl Flag<bool> {
                 | 
            
102  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
103  | 
              
                    pub(crate) fn set_bool(&self, value: &'static bool) {
                 | 
            
11  | 
              
                /// for an example of implementing `Value` for your own types.
                 | 
            
12  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
13  | 
              
                pub trait Value: Sized + 'static {
                 | 
            
21  | 
              
                	#[inline]
                 | 
            
22  | 
              
                	#[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
23  | 
              
                	pub fn read_event<F>(
                 | 
            
20  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
21  | 
              
                    #[doc(alias = "g_quark_to_string")]
                 | 
            
77  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
78  | 
              
                impl SelectionParent {
                 | 
            
21  | 
              
                #[allow(clippy::redundant_static_lifetimes, clippy::unreadable_literal)]
                 | 
            
22  | 
              
                #[allow(clippy::useless_transmute, clippy::trivially_copy_pass_by_ref)]
                 | 
            
23  | 
              
                mod ffi;
                 | 
            
36  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
37  | 
              
                fn eia608_from_utf8_1(c: &[u8; 5]) -> u16 {
                 | 
            
9  | 
              
                impl<'a> MutexGuard<'a> {
                 | 
            
10  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
11  | 
              
                    #[doc(alias = "g_mutex_lock")]
                 | 
            
9  | 
              
                impl<'a> MutexGuard<'a> {
                 | 
            
10  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
11  | 
              
                    #[allow(dead_code)]
                 | 
            
9  | 
              
                impl<'a> MutexGuard<'a> {
                 | 
            
10  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
11  | 
              
                    #[doc(alias = "g_mutex_lock")]
                 | 
            
16  | 
              
                impl<'a> MutexGuard<'a> {
                 | 
            
17  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
18  | 
              
                    #[allow(dead_code)]
                 | 
            
77  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
78  | 
              
                impl SelectionParent {
                 | 
            
16  | 
              
                impl Key {
                 | 
            
17  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
18  | 
              
                    #[inline]
                 | 
            
152  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
153  | 
              
                    fn next_u32(x: &u32) -> Result<Option<u32>, ()> {
                 | 
            
96  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
97  | 
              
                impl GlyphFlags {
                 | 
            
38  | 
              
                  ];
                 | 
            
39  | 
              
                  #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
40  | 
              
                  pub fn write_to_out_protocol(&self, o_prot: &mut dyn TOutputProtocol) -> thrift::Result<()> {
                  
                 | 
            
86  | 
              
                  ];
                 | 
            
87  | 
              
                  #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
88  | 
              
                  pub fn write_to_out_protocol(&self, o_prot: &mut dyn TOutputProtocol) -> thrift::Result<()> {
                 | 
            
1290  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
1291  | 
              
                    fn set_family(id: hid_t, drv: &FamilyDriver) -> Result<()> {
                 | 
            
95  | 
              
                    /// Converts an `Error` to the raw error code.
                 | 
            
96  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
97  | 
              
                    pub fn to_err_code(&self) -> c_int {
                 | 
            
21  | 
              
                #[allow(trivial_casts)]
                 | 
            
22  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
23  | 
              
                pub fn disk_performance(volume_path: &Path) -> Result<Option<winioctl::DISK_PERFORMANCE>> {
                 | 
            
70  | 
              
                /// `word` must be valid for the entire lifetime `'a`.
                 | 
            
71  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
72  | 
              
                pub(crate) unsafe fn word_to_iter<'a>(
                 | 
            
109  | 
              
                        /// This is used by the dispatcher and must be a `&T`.
                 | 
            
110  | 
              
                        #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
111  | 
              
                        const fn map_usize_to_request(x: &usize) -> Option<DispatcherRequest> {
                 | 
            
131  | 
              
                        /// This is used by the dispatcher and must be a `&T`.
                 | 
            
132  | 
              
                        #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
133  | 
              
                        const fn map_usize_to_request(x: &usize) -> Option<PriorityDispatcherResult> {
                 | 
            
19  | 
              
                #[cfg(feature = "hi3531v100")]
                 | 
            
20  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
21  | 
              
                pub fn set_config(cfg: &ffi::MPP_SYS_CONF_S) -> Result<(), HiError> {
                  
                 | 
            
26  | 
              
                #[cfg(not(feature = "hi3531v100"))]
                 | 
            
27  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
28  | 
              
                pub fn set_config(cfg: &ffi::MPP_SYS_CONFIG_S) -> Result<(), HiError> {
                  
                 | 
            
624  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
625  | 
              
                    pub fn set_config(&self, cfg: &MppSysConfig) -> Result<(), HiError> {
                 | 
            
1824  | 
              
                    /// 返回计算所得的面积。
                 | 
            
1825  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
1826  | 
              
                    pub fn area(&self) -> u32 {
                  
                 | 
            
1830  | 
              
                    /// 检测尺寸是否为空。
                 | 
            
1831  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
1832  | 
              
                    pub fn is_empty(&self) -> bool {
                 | 
            
175  | 
              
                /// /// 设置 VB 内存的附加信息。
                 | 
            
176  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
177  | 
              
                pub fn set_supplement_config<T>(cfg: &T) -> HiResult<()>
                 | 
            
190  | 
              
                /// 将解码通道绑定到某个视频缓存 VB 池中。
                 | 
            
191  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
192  | 
              
                pub fn attach_vb_pool<T>(chn: ffi::VDEC_CHN, pool: &T) -> HiResult<()>
                 | 
            
42  | 
              
                /// 开启编码通道接收输入图像,允许指定接收帧数,超出指定的帧数后自动停止接收图像。
                 | 
            
43  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
44  | 
              
                pub fn start_recv_frame(
                  
                 | 
            
166  | 
              
                /// 设置 H.264/H.265 通道的非 ROI 区域帧率属性。
                 | 
            
167  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
168  | 
              
                pub fn set_roi_bg_framerate(
                  
                 | 
            
181  | 
              
                /// 设置 H.264 通道的 slice 分割属性。
                 | 
            
182  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
183  | 
              
                pub fn set_h264_slice_split(
                 | 
            
107  | 
              
                    /// replace an element, this will panic if you pass an id that is not present
                 | 
            
108  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
109  | 
              
                    pub fn replace(&mut self, id: &usize, elem: T) {
                  
                 | 
            
117  | 
              
                    /// get an element based on it's id
                 | 
            
118  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
119  | 
              
                    pub fn get(&self, id: &usize) -> Option<&T> {
                  
                 | 
            
123  | 
              
                    /// get an element based on it's id
                 | 
            
124  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
125  | 
              
                    pub fn get_mut(&mut self, id: &usize) -> Option<&mut T> {
                  
                 | 
            
129  | 
              
                    /// remove an element based on its id
                 | 
            
130  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
131  | 
              
                    pub fn remove(&mut self, id: &usize) -> T {
                  
                 | 
            
135  | 
              
                    /// remove an element based on its id
                 | 
            
136  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
137  | 
              
                    pub fn remove_opt(&mut self, id: &usize) -> Option<T> {
                 | 
            
126  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)] // Needed for Serde.
                 | 
            
127  | 
              
                fn is_false(t: &bool) -> bool {
                 | 
            
248  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)] // Needed for Serde.
                 | 
            
249  | 
              
                fn is_false(t: &bool) -> bool {
                 | 
            
60  | 
              
                    /// ~~~
                 | 
            
61  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
62  | 
              
                    pub fn is_unknown(&self) -> bool {
                  
                 | 
            
114  | 
              
                    /// ~~~
                 | 
            
115  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
116  | 
              
                    pub fn is_unknown(&self) -> bool {
                  
                 | 
            
128  | 
              
                    /// ~~~
                 | 
            
129  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
130  | 
              
                    pub fn is_offline(&self) -> bool {
                  
                 | 
            
144  | 
              
                    /// ~~~
                 | 
            
145  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
146  | 
              
                    pub fn is_online(&self) -> bool {
                  
                 | 
            
163  | 
              
                    /// ~~~
                 | 
            
164  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
165  | 
              
                    pub fn is_producing(&self) -> bool {
                 | 
            
54  | 
              
                /// Used to suppress serialization numeric fields that are zero (e.g. priority).
                 | 
            
55  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
56  | 
              
                pub fn is_zero(num: &i32) -> bool {
                  
                 | 
            
90  | 
              
                #[allow(clippy::option_option)]
                 | 
            
91  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
92  | 
              
                pub fn serialize_some_none_to_invalid<S, T>(
                 | 
            
66  | 
              
                  fn from_str(text: &str) -> Result<Self, Self::Err> {
                 | 
            
67  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
68  | 
              
                    fn is_digit(c: &char) -> bool {
                 | 
            
86  | 
              
                // This should be OK because serde serializer MUST be `fn<S>(&T, S)`
                 | 
            
87  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
88  | 
              
                fn serialize_status_code<S>(status: &http::StatusCode, s: S) -> Result<S::Ok, S::Error>
                 | 
            
39  | 
              
                  ];
                 | 
            
40  | 
              
                  #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
41  | 
              
                  pub fn write_to_out_protocol(&self, o_prot: &mut dyn TOutputProtocol) -> thrift::Result<()> {
                 | 
            
59  | 
              
                  ];
                 | 
            
60  | 
              
                  #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
61  | 
              
                  pub fn write_to_out_protocol(&self, o_prot: &mut dyn TOutputProtocol) -> thrift::Result<()> {
                 | 
            
26  | 
              
                    /// [HTTP status code]: `kayrx::http::StatusCode`
                 | 
            
27  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
28  | 
              
                    pub fn status_code(&self) -> StatusCode {
                  
                 | 
            
36  | 
              
                    #[doc(hidden)]
                 | 
            
37  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
38  | 
              
                    pub fn as_str(&self) -> &str {
                 | 
            
37  | 
              
                /// Set the terminal mode.
                 | 
            
38  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
39  | 
              
                pub fn set_term_mode((stdin_mode, stdout_mode): &TermMode) -> Result<(), io::Error> {
                 | 
            
239  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
240  | 
              
                fn is_not_finite(x: &f64) -> bool {
                 | 
            
19  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
20  | 
              
                fn is_false(b: &bool) -> bool {
                 | 
            
14  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
15  | 
              
                fn is_false(b: &bool) -> bool {
                 | 
            
835  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
836  | 
              
                fn order_primary_asc(a: &Primary, b: &Primary) -> Ordering {
                  
                 | 
            
840  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
841  | 
              
                fn order_primary_desc(a: &Primary, b: &Primary) -> Ordering {
                 | 
            
182  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
183  | 
              
                    pub fn serialize<S: Serializer>(field: &Identifier, op: &OrderKind, serializer: S) -> Result<S::Ok, S::Error> {
                 | 
            
330  | 
              
                    #[allow(clippy::ptr_arg, clippy::trivially_copy_pass_by_ref)]
                 | 
            
331  | 
              
                    pub fn serialize<S: Serializer>(
                 | 
            
19  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
20  | 
              
                    pub fn has(&self, id: &Primary) -> bool {
                 | 
            
28  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
29  | 
              
                    pub fn serialize<S: Serializer>(
                 | 
            
13  | 
              
                    /// this distance is processed forward taking wrapping into account
                 | 
            
14  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
15  | 
              
                    pub fn forward_distance_to(&self, other: Location) -> u32 {
                 | 
            
662  | 
              
                    #[allow(clippy::needless_range_loop)]
                 | 
            
663  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
664  | 
              
                    fn is_interesting_default<EM, OT>(
                 | 
            
70  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
71  | 
              
                    pub fn serialize<S>(x: &u64, s: S) -> Result<S::Ok, S::Error>
                 | 
            
171  | 
              
                #[allow(clippy::unreadable_literal)]
                 | 
            
172  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
173  | 
              
                #[allow(clippy::useless_transmute)]
                 | 
            
48  | 
              
                    /// environment, or after the database has been closed.
                 | 
            
49  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
50  | 
              
                    pub fn dbi(&self) -> ffi::MDB_dbi {
                 | 
            
88  | 
              
                    /// Converts an `Error` to the raw error code.
                 | 
            
89  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
90  | 
              
                    pub fn to_err_code(&self) -> c_int {
                 | 
            
113  | 
              
                	/// Convert a [`TagRestrictions`] into a `u8`
                 | 
            
114  | 
              
                	#[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
115  | 
              
                	pub fn as_bytes(&self) -> u8 {
                 | 
            
24  | 
              
                impl OGGFormat {
                 | 
            
25  | 
              
                	#[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
26  | 
              
                	pub(crate) fn comment_signature(&self) -> Option<&[u8]> {
                 | 
            
70  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
71  | 
              
                fn and(a: &Ieee1164, b: &Ieee1164) -> Ieee1164 {
                  
                 | 
            
89  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
90  | 
              
                fn or(a: &Ieee1164, b: &Ieee1164) -> Ieee1164 {
                  
                 | 
            
108  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
109  | 
              
                fn xor(a: &Ieee1164, b: &Ieee1164) -> Ieee1164 {
                  
                 | 
            
155  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
156  | 
              
                fn resolve(a: &Ieee1164, b: &Ieee1164) -> Ieee1164 {
                 | 
            
77  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
78  | 
              
                fn and(a: &Ie, b: &Ie) -> Ie {
                  
                 | 
            
87  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
88  | 
              
                fn or(a: &Ie, b: &Ie) -> Ie {
                  
                 | 
            
117  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
118  | 
              
                fn xor(a: &Ie, b: &Ie) -> Ie {
                  
                 | 
            
127  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
128  | 
              
                fn resolve(a: &Ie, b: &Ie) -> Ie {
                 | 
            
542  | 
              
                  /// Loads the `f32` address into all lanes.
                 | 
            
543  | 
              
                  #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
544  | 
              
                  #[inline(always)]
                  
                 | 
            
549  | 
              
                  /// Loads the `f32` address into lane 0, other lanes are `0.0`.
                 | 
            
550  | 
              
                  #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
551  | 
              
                  #[inline(always)]
                 | 
            
1751  | 
              
                  /// Load the `f64` addressed into the low lane, high lane `0.0`.
                 | 
            
1752  | 
              
                  #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
1753  | 
              
                  #[inline(always)]
                  
                 | 
            
1758  | 
              
                  /// Replace high lane with the float referenced, low lane unaffected.
                 | 
            
1759  | 
              
                  #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
1760  | 
              
                  #[inline(always)]
                  
                 | 
            
1765  | 
              
                  /// Replace low lane with the float referenced, high lane unaffected.
                 | 
            
1766  | 
              
                  #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
1767  | 
              
                  #[inline(always)]
                 | 
            
111  | 
              
                  #[inline(always)]
                 | 
            
112  | 
              
                  #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
113  | 
              
                  pub fn load_splat(addr: &f64) -> Self {
                 | 
            
31  | 
              
                    /// Since the body is not included in the atom reference, this method has to assume that it is valid memory and therefore is unsafe but sound.
                 | 
            
32  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
33  | 
              
                    pub unsafe fn from_atom(atom: &sys::LV2_Atom) -> Self {
                 | 
            
60  | 
              
                    /// ```
                 | 
            
61  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
62  | 
              
                    pub fn is_nil(&self) -> bool {
                  
                 | 
            
75  | 
              
                    /// ```
                 | 
            
76  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
77  | 
              
                    pub fn is_broadcast(&self) -> bool {
                  
                 | 
            
90  | 
              
                    /// ```
                 | 
            
91  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
92  | 
              
                    pub const fn is_unicast(&self) -> bool {
                  
                 | 
            
105  | 
              
                    /// ```
                 | 
            
106  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
107  | 
              
                    pub const fn is_multicast(&self) -> bool {
                  
                 | 
            
120  | 
              
                    /// ```
                 | 
            
121  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
122  | 
              
                    pub const fn is_universal(&self) -> bool {
                 | 
            
60  | 
              
                    /// ```
                 | 
            
61  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
62  | 
              
                    pub fn is_nil(&self) -> bool {
                  
                 | 
            
75  | 
              
                    /// ```
                 | 
            
76  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
77  | 
              
                    pub fn is_broadcast(&self) -> bool {
                  
                 | 
            
90  | 
              
                    /// ```
                 | 
            
91  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
92  | 
              
                    pub const fn is_unicast(&self) -> bool {
                  
                 | 
            
105  | 
              
                    /// ```
                 | 
            
106  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
107  | 
              
                    pub const fn is_multicast(&self) -> bool {
                  
                 | 
            
120  | 
              
                    /// ```
                 | 
            
121  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
122  | 
              
                    pub const fn is_universal(&self) -> bool {
                 | 
            
131  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
132  | 
              
                fn is_true(boolean: &bool) -> bool {
                 | 
            
251  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
252  | 
              
                    pub fn join_multicast_v4(&self, multiaddr: &Ipv4Addr, interface: &Ipv4Addr) -> io::Result<()> {
                  
                 | 
            
260  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
261  | 
              
                    pub fn leave_multicast_v4(&self, multiaddr: &Ipv4Addr, interface: &Ipv4Addr) -> io::Result<()> {
                 | 
            
273  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
274  | 
              
                    pub fn join_multicast_v4(&self, multiaddr: &Ipv4Addr, interface: &Ipv4Addr) -> io::Result<()> {
                  
                 | 
            
282  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
283  | 
              
                    pub fn leave_multicast_v4(&self, multiaddr: &Ipv4Addr, interface: &Ipv4Addr) -> io::Result<()> {
                 | 
            
104  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
105  | 
              
                    fn remove_peer_id(&mut self, peer_id: &PeerId) {
                 | 
            
67  | 
              
                	/// Gets the short name of this PackageType.
                 | 
            
68  | 
              
                	#[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
69  | 
              
                	pub fn short_name(&self) -> &'static str {
                 | 
            
503  | 
              
                    /// interface is chosen by the system.
                 | 
            
504  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
505  | 
              
                    pub fn join_multicast_v4(&self, multiaddr: &Ipv4Addr, interface: &Ipv4Addr) -> io::Result<()> {
                  
                 | 
            
513  | 
              
                    /// index of the interface to join/leave (or 0 to indicate any interface).
                 | 
            
514  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
515  | 
              
                    pub fn join_multicast_v6(&self, multiaddr: &Ipv6Addr, interface: u32) -> io::Result<()> {
                  
                 | 
            
524  | 
              
                    /// [link]: #method.join_multicast_v4
                 | 
            
525  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
526  | 
              
                    pub fn leave_multicast_v4(&self, multiaddr: &Ipv4Addr, interface: &Ipv4Addr) -> io::Result<()> {
                  
                 | 
            
535  | 
              
                    /// [link]: #method.join_multicast_v6
                 | 
            
536  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
537  | 
              
                    pub fn leave_multicast_v6(&self, multiaddr: &Ipv6Addr, interface: u32) -> io::Result<()> {
                  
                 | 
            
541  | 
              
                    /// Get the value of the `IPV6_V6ONLY` option on this socket.
                 | 
            
542  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
543  | 
              
                    pub fn only_v6(&self) -> io::Result<bool> {
                 | 
            
82  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
83  | 
              
                pub mod event {
                 | 
            
246  | 
              
                    pub fn debug_details(f: &mut fmt::Formatter<'_>, event: &Event) -> fmt::Result {
                 | 
            
247  | 
              
                        #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
248  | 
              
                        fn check_events(got: &u32, want: &libc::c_int) -> bool {
                 | 
            
475  | 
              
                        #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
476  | 
              
                        fn check_flag(got: &Flags, want: &Flags) -> bool {
                  
                 | 
            
506  | 
              
                        #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
507  | 
              
                        fn check_fflag(got: &u32, want: &u32) -> bool {
                 | 
            
321  | 
              
                        #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
322  | 
              
                        fn check_flag(got: &wasi::Eventrwflags, want: &wasi::Eventrwflags) -> bool {
                 | 
            
503  | 
              
                    /// interface is chosen by the system.
                 | 
            
504  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
505  | 
              
                    pub fn join_multicast_v4(&self, multiaddr: &Ipv4Addr, interface: &Ipv4Addr) -> io::Result<()> {
                  
                 | 
            
513  | 
              
                    /// index of the interface to join/leave (or 0 to indicate any interface).
                 | 
            
514  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
515  | 
              
                    pub fn join_multicast_v6(&self, multiaddr: &Ipv6Addr, interface: u32) -> io::Result<()> {
                  
                 | 
            
524  | 
              
                    /// [link]: #method.join_multicast_v4
                 | 
            
525  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
526  | 
              
                    pub fn leave_multicast_v4(&self, multiaddr: &Ipv4Addr, interface: &Ipv4Addr) -> io::Result<()> {
                  
                 | 
            
535  | 
              
                    /// [link]: #method.join_multicast_v6
                 | 
            
536  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
537  | 
              
                    pub fn leave_multicast_v6(&self, multiaddr: &Ipv6Addr, interface: u32) -> io::Result<()> {
                  
                 | 
            
541  | 
              
                    /// Get the value of the `IPV6_V6ONLY` option on this socket.
                 | 
            
542  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
543  | 
              
                    pub fn only_v6(&self) -> io::Result<bool> {
                 | 
            
82  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
83  | 
              
                pub mod event {
                 | 
            
246  | 
              
                    pub fn debug_details(f: &mut fmt::Formatter<'_>, event: &Event) -> fmt::Result {
                 | 
            
247  | 
              
                        #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
248  | 
              
                        fn check_events(got: &u32, want: &libc::c_int) -> bool {
                 | 
            
475  | 
              
                        #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
476  | 
              
                        fn check_flag(got: &Flags, want: &Flags) -> bool {
                  
                 | 
            
506  | 
              
                        #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
507  | 
              
                        fn check_fflag(got: &u32, want: &u32) -> bool {
                 | 
            
309  | 
              
                        #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
310  | 
              
                        fn check_flag(got: &wasi::Eventrwflags, want: &wasi::Eventrwflags) -> bool {
                 | 
            
124  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
125  | 
              
                const fn is_zero(value: &usize) -> bool {
                 | 
            
45  | 
              
                    /// environment, or after the database has been closed.
                 | 
            
46  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
47  | 
              
                    pub fn dbi(&self) -> ffi::MDB_dbi {
                 | 
            
84  | 
              
                    /// Converts an `Error` to the raw error code.
                 | 
            
85  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
86  | 
              
                    pub fn to_err_code(&self) -> c_int {
                 | 
            
133  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
134  | 
              
                pub(crate) fn serialize_u32_option_as_i32<S: Serializer>(
                  
                 | 
            
144  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
145  | 
              
                pub(crate) fn serialize_u32_option_as_batch_size<S: Serializer>(
                 | 
            
29  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)] // TODO: Consider reworking to a copy
                 | 
            
30  | 
              
                fn make_box<F>(size: BoxSize, name: &[u8; 4], func: F) -> Cursor<Vec<u8>>
                  
                 | 
            
86  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)] // TODO: Consider reworking to a copy
                 | 
            
87  | 
              
                fn make_fullbox<F>(size: BoxSize, name: &[u8; 4], version: u8, func: F) -> Cursor<Vec<u8>>
                 | 
            
27  | 
              
                /// This is only used for serialize
                 | 
            
28  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
29  | 
              
                fn is_zero(num: &u32) -> bool {
                 | 
            
69  | 
              
                // https://stackoverflow.com/questions/53900612/how-do-i-avoid-generating-json-when-serializing-a-value-that-is-null-or-a-defaul
                 | 
            
70  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
71  | 
              
                fn is_zero(num: &f64) -> bool {
                 | 
            
189  | 
              
                /// Filter function that removes loopback/link local/unspecified IPv4 addresses
                 | 
            
190  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
191  | 
              
                fn filter_nonroute_ipv4(addr: &&IpAddr) -> bool {
                  
                 | 
            
202  | 
              
                /// Filter function that removes loopback/link local/unspecified IPv6 addresses
                 | 
            
203  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
204  | 
              
                fn filter_nonroute_ipv6(addr: &&IpAddr) -> bool {
                  
                 | 
            
210  | 
              
                /// Filter function that prefers global IPv4 addresses
                 | 
            
211  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
212  | 
              
                fn filter_nonlocal_ipv4(addr: &&&IpAddr) -> bool {
                  
                 | 
            
216  | 
              
                /// Filter function that prefers global IPv6 addresses
                 | 
            
217  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
218  | 
              
                fn filter_nonlocal_ipv6(_addr: &&&IpAddr) -> bool {
                 | 
            
121  | 
              
                        fn outer(self) -> Self::Ret {
                 | 
            
122  | 
              
                            #[cfg_attr(feature = "cargo-clippy", allow(trivially_copy_pass_by_ref))]
                 | 
            
123  | 
              
                            fn is_outer(attr: &&syn::Attribute) -> bool {
                  
                 | 
            
132  | 
              
                        fn inner(self) -> Self::Ret {
                 | 
            
133  | 
              
                            #[cfg_attr(feature = "cargo-clippy", allow(trivially_copy_pass_by_ref))]
                 | 
            
134  | 
              
                            fn is_inner(attr: &&syn::Attribute) -> bool {
                 | 
            
519  | 
              
                /// This is only used for serialize
                 | 
            
520  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref, dead_code)]
                 | 
            
521  | 
              
                fn is_false(v: &bool) -> bool {
                  
                 | 
            
525  | 
              
                /// This is only used for serialize
                 | 
            
526  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref, dead_code)]
                 | 
            
527  | 
              
                fn is_zero(v: &usize) -> bool {
                 | 
            
25  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
26  | 
              
                const fn is_true(field: &bool) -> bool {
                  
                 | 
            
30  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
31  | 
              
                #[inline]
                 | 
            
71  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
72  | 
              
                const fn is_true(field: &bool) -> bool {
                  
                 | 
            
76  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
77  | 
              
                #[inline]
                 | 
            
115  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
116  | 
              
                fn ser_from_bool<S>(v: &bool, serializer: S) -> std::result::Result<S::Ok, S::Error>
                 | 
            
947  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
948  | 
              
                fn is_false(val: &bool) -> bool {
                 | 
            
24  | 
              
                	#[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
25  | 
              
                	pub fn is_cidr(&self) -> bool {
                 | 
            
75  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
76  | 
              
                    async fn encode_to<W>(&self, config: &Config, writer: W) -> Result<usize>
                  
                 | 
            
91  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
92  | 
              
                    async fn encode_to<W>(&self, config: &Config, writer: W) -> Result<usize>
                  
                 | 
            
366  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
367  | 
              
                    async fn encode_to<W>(&self, _config: &Config, _writer: W) -> Result<usize>
                  
                 | 
            
434  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
435  | 
              
                    async fn encode_to<W>(&self, _config: &Config, _writer: W) -> Result<usize>
                 | 
            
116  | 
              
                    // to borrow SerialNumber instead of copying it even if it might be less efficient.
                 | 
            
117  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
118  | 
              
                    pub fn as_u32(&self) -> u32 {
                 | 
            
10  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)] // needs to match signature for use in serde attribute
                 | 
            
11  | 
              
                #[inline]
                 | 
            
14  | 
              
                /// }
                 | 
            
15  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)] // needs to match signature for use in serde attribute
                 | 
            
16  | 
              
                #[inline]
                 | 
            
62  | 
              
                impl FourCC {
                 | 
            
63  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
64  | 
              
                    /// Returns a pixelformat as four character code
                 | 
            
28  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
29  | 
              
                    pub fn as_raw(&self) -> c_int {
                 | 
            
170  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
171  | 
              
                    pub fn as_ptr(&self) -> *const ffi::EVP_MD {
                  
                 | 
            
175  | 
              
                    /// The block size of the digest in bytes.
                 | 
            
176  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
177  | 
              
                    pub fn block_size(&self) -> usize {
                  
                 | 
            
181  | 
              
                    /// The size of the digest in bytes.
                 | 
            
182  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
183  | 
              
                    pub fn size(&self) -> usize {
                  
                 | 
            
187  | 
              
                    /// The name of the digest.
                 | 
            
188  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
189  | 
              
                    pub fn type_(&self) -> Nid {
                 | 
            
58  | 
              
                    /// Return the integer representation of a `Nid`.
                 | 
            
59  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
60  | 
              
                    pub fn as_raw(&self) -> c_int {
                  
                 | 
            
84  | 
              
                    #[corresponds(OBJ_find_sigid_algs)]
                 | 
            
85  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
86  | 
              
                    pub fn signature_algorithms(&self) -> Option<SignatureAlgorithms> {
                  
                 | 
            
102  | 
              
                    #[corresponds(OBJ_nid2ln)]
                 | 
            
103  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
104  | 
              
                    pub fn long_name(&self) -> Result<&'static str, ErrorStack> {
                  
                 | 
            
112  | 
              
                    #[corresponds(OBJ_nid2sn)]
                 | 
            
113  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
114  | 
              
                    pub fn short_name(&self) -> Result<&'static str, ErrorStack> {
                 | 
            
54  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
55  | 
              
                    pub fn as_raw(&self) -> c_int {
                 | 
            
176  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
177  | 
              
                fn config_drive_string_to_bool<S>(has_config_drive: &Option<bool>, s: S) -> Result<S::Ok, S::Error>
                 | 
            
388  | 
              
                /// helper for serde
                 | 
            
389  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
390  | 
              
                fn is_false(value: &bool) -> bool {
                 | 
            
129  | 
              
                    /// Short description of the error kind.
                 | 
            
130  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
131  | 
              
                    #[inline]
                 | 
            
39  | 
              
                  ];
                 | 
            
40  | 
              
                  #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
41  | 
              
                  pub fn write_to_out_protocol(&self, o_prot: &mut dyn TOutputProtocol) -> thrift::Result<()> {
                 | 
            
143  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
144  | 
              
                pub fn optional_bool_to_int<S>(x: &Option<bool>, serializer: S) -> Result<S::Ok, S::Error>
                  
                 | 
            
250  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
251  | 
              
                pub fn bool_to_int<S>(x: &bool, serializer: S) -> Result<S::Ok, S::Error>
                 | 
            
14  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
15  | 
              
                fn bool_is_false(value: &bool) -> bool {
                 | 
            
1044  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
1045  | 
              
                fn is_false(val: &bool) -> bool {
                 | 
            
55  | 
              
                impl TSerializable for Type {
                 | 
            
56  | 
              
                  #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
57  | 
              
                  fn write_to_out_protocol(&self, o_prot: &mut dyn TOutputProtocol) -> thrift::Result<()> {
                  
                 | 
            
224  | 
              
                impl TSerializable for ConvertedType {
                 | 
            
225  | 
              
                  #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
226  | 
              
                  fn write_to_out_protocol(&self, o_prot: &mut dyn TOutputProtocol) -> thrift::Result<()> {
                  
                 | 
            
301  | 
              
                impl TSerializable for FieldRepetitionType {
                 | 
            
302  | 
              
                  #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
303  | 
              
                  fn write_to_out_protocol(&self, o_prot: &mut dyn TOutputProtocol) -> thrift::Result<()> {
                  
                 | 
            
399  | 
              
                impl TSerializable for Encoding {
                 | 
            
400  | 
              
                  #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
401  | 
              
                  fn write_to_out_protocol(&self, o_prot: &mut dyn TOutputProtocol) -> thrift::Result<()> {
                  
                 | 
            
476  | 
              
                impl TSerializable for CompressionCodec {
                 | 
            
477  | 
              
                  #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
478  | 
              
                  fn write_to_out_protocol(&self, o_prot: &mut dyn TOutputProtocol) -> thrift::Result<()> {
                 | 
            
53  | 
              
                  ];
                 | 
            
54  | 
              
                  #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
55  | 
              
                  pub fn write_to_out_protocol<T: TOutputProtocol>(&self, o_prot: &mut T) -> thrift::Result<usize> {
                  
                 | 
            
57  | 
              
                  }
                 | 
            
58  | 
              
                  #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
59  | 
              
                  pub async fn write_to_out_stream_protocol<T: TOutputStreamProtocol>(&self, o_prot: &mut T) -> thrift::Result<usize> {
                  
                 | 
            
227  | 
              
                  ];
                 | 
            
228  | 
              
                  #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
229  | 
              
                  pub fn write_to_out_protocol<T: TOutputProtocol>(&self, o_prot: &mut T) -> thrift::Result<usize> {
                  
                 | 
            
231  | 
              
                  }
                 | 
            
232  | 
              
                  #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
233  | 
              
                  pub async fn write_to_out_stream_protocol<T: TOutputStreamProtocol>(&self, o_prot: &mut T) -> thrift::Result<usize> {
                  
                 | 
            
309  | 
              
                  ];
                 | 
            
310  | 
              
                  #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
311  | 
              
                  pub fn write_to_out_protocol<T: TOutputProtocol>(&self, o_prot: &mut T) -> thrift::Result<usize> {
                 | 
            
45  | 
              
                  ];
                 | 
            
46  | 
              
                  #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
47  | 
              
                  pub fn write_to_out_protocol<T: TOutputProtocol>(&self, o_prot: &mut T) -> thrift::Result<usize> {
                  
                 | 
            
49  | 
              
                  }
                 | 
            
50  | 
              
                  #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
51  | 
              
                  #[cfg(feature = "async")]
                  
                 | 
            
228  | 
              
                  ];
                 | 
            
229  | 
              
                  #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
230  | 
              
                  pub fn write_to_out_protocol<T: TOutputProtocol>(&self, o_prot: &mut T) -> thrift::Result<usize> {
                  
                 | 
            
232  | 
              
                  }
                 | 
            
233  | 
              
                  #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
234  | 
              
                  #[cfg(feature = "async")]
                  
                 | 
            
319  | 
              
                  ];
                 | 
            
320  | 
              
                  #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
321  | 
              
                  pub fn write_to_out_protocol<T: TOutputProtocol>(&self, o_prot: &mut T) -> thrift::Result<usize> {
                 | 
            
204  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)] //signature is actually determined by Iterator::skip_while(). There's simply no choice.
                 | 
            
205  | 
              
                fn is_zero(i : &usize) -> bool {
                 | 
            
339  | 
              
                impl Palette {
                 | 
            
340  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
341  | 
              
                    pub fn push_paint(&mut self, paint: &Paint) -> PaintId {
                 | 
            
153  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
154  | 
              
                    pub fn push_paint(&mut self, paint: &Paint) -> PaintId {
                 | 
            
434  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
435  | 
              
                fn serialize_header_only<S, Phantom>(
                 | 
            
704  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
705  | 
              
                    pub(crate) fn create_linear_gradient(
                  
                 | 
            
866  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
867  | 
              
                    pub(crate) fn draw_bitmap(
                 | 
            
499  | 
              
                    }
                 | 
            
500  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
501  | 
              
                    #[allow(clippy::too_many_lines)]
                 | 
            
771  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
772  | 
              
                    pub fn with_bool(mut self, b: &CK_BBOOL) -> Self {
                  
                 | 
            
778  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
779  | 
              
                    pub fn set_bool(&mut self, b: &CK_BBOOL) {
                  
                 | 
            
792  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
793  | 
              
                    pub fn with_ck_ulong(mut self, val: &CK_ULONG) -> Self {
                  
                 | 
            
799  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
800  | 
              
                    pub fn set_ck_ulong(&mut self, val: &CK_ULONG) {
                  
                 | 
            
812  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
813  | 
              
                    pub fn with_ck_long(mut self, val: &CK_LONG) -> Self {
                 | 
            
17  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
18  | 
              
                #[inline]
                 | 
            
105  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
106  | 
              
                    pub(super) fn to_pb(v: &Option<CustomId>) -> u32 {
                 | 
            
317  | 
              
                    #[allow(clippy::ref_option_ref, clippy::trivially_copy_pass_by_ref)] // Because of `render_sequence()` arg types
                 | 
            
318  | 
              
                    fn render_option_type(&self, ty: &Option<&Type>) -> Vec<Token> {
                 | 
            
67  | 
              
                impl LogNTransform {
                 | 
            
68  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
69  | 
              
                    pub fn serialize<S: Serializer>(value: &u8, serializer: S) -> Result<S::Ok, S::Error> {
                 | 
            
22  | 
              
                // Gross hack to not include `dead` if unneeded, to follow pyQuil's implementation
                 | 
            
23  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
24  | 
              
                fn is_false(val: &bool) -> bool {
                 | 
            
23  | 
              
                // Gross hack to not include `dead` if unneeded, to follow pyQuil's implementation
                 | 
            
24  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
25  | 
              
                fn is_false(val: &bool) -> bool {
                 | 
            
392  | 
              
                        #[allow(clippy::unnecessary_wraps)]
                 | 
            
393  | 
              
                        #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
394  | 
              
                        fn get_field<'c>(row: &mut &'c csv::ByteRecord, idx: &usize) -> Option<&'c [u8]> {
                 | 
            
84  | 
              
                    /// The state of the given pointer
                 | 
            
85  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
86  | 
              
                    pub fn pointer(&self, id: &PointerId) -> Option<PointerState> {
                 | 
            
40  | 
              
                    // according to the benchmarks on my machine. Ignore the clippy warning.
                 | 
            
41  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
42  | 
              
                    fn decode_chunk(self, input: &[u8; 8], output: &mut [u8; 6]) -> Result<(), u8> {
                 | 
            
27  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
28  | 
              
                    pub fn deserialize(data: &[u8; 4]) -> PayloadId {
                 | 
            
101  | 
              
                        #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
102  | 
              
                        fn is_false(value: &bool) -> bool {
                 | 
            
143  | 
              
                impl<'a, S> Middleware<'a, S> for Compress {
                 | 
            
144  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
145  | 
              
                    #[inline]
                 | 
            
182  | 
              
                impl<'a, S> Middleware<'a, S> for () {
                 | 
            
183  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
184  | 
              
                    #[inline]
                  
                 | 
            
192  | 
              
                impl<'a, S> Endpoint<'a, S> for () {
                 | 
            
193  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
194  | 
              
                    #[inline]
                 | 
            
28  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
29  | 
              
                fn is_byte_count(v: &u32) -> bool {
                 | 
            
106  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
107  | 
              
                    fn is_default_limit(val: &UInt) -> bool {
                 | 
            
167  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
168  | 
              
                    fn is_default_limit(val: &UInt) -> bool {
                 | 
            
162  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
163  | 
              
                    fn is_default_event_context_limit(val: &UInt) -> bool {
                 | 
            
141  | 
              
                /// Used with `#[serde(skip_serializing_if)]` to omit default power levels.
                 | 
            
142  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
143  | 
              
                fn is_default_power_level(l: &Int) -> bool {
                 | 
            
54  | 
              
                /// Useful for `#[serde(skip_serializing_if = ...)]`.
                 | 
            
55  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
56  | 
              
                pub fn is_true(b: &bool) -> bool {
                 | 
            
166  | 
              
                /// Used with `#[serde(skip_serializing_if)]` to omit default power levels.
                 | 
            
167  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
168  | 
              
                fn is_default_power_level(l: &Int) -> bool {
                 | 
            
61  | 
              
                /// Useful for `#[serde(skip_serializing_if = ...)]`.
                 | 
            
62  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
63  | 
              
                pub fn is_true(b: &bool) -> bool {
                 | 
            
119  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
120  | 
              
                pub(crate) fn bool_to_string<S>(value: &bool, serializer: S) -> Result<S::Ok, S::Error>
                  
                 | 
            
142  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
143  | 
              
                pub(crate) fn bool_to_int<S>(value: &bool, serializer: S) -> Result<S::Ok, S::Error>
                  
                 | 
            
161  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
162  | 
              
                pub(crate) fn optional_bool_to_int<S>(value: &Option<bool>, serializer: S) -> Result<S::Ok, S::Error>
                 | 
            
175  | 
              
                #[pyimpl(flags(BASETYPE))]
                 | 
            
176  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
177  | 
              
                impl PyFloat {
                 | 
            
54  | 
              
                impl<T: FieldResolver> FieldResolver for &T {
                 | 
            
55  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
56  | 
              
                    async fn resolve_field(&self, ctx: &Context<'_>) -> ResolverResult<Option<GqlValue>> {
                  
                 | 
            
67  | 
              
                impl<T: FieldResolver> FieldResolver for Arc<T> {
                 | 
            
68  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
69  | 
              
                    async fn resolve_field(&self, ctx: &Context<'_>) -> ResolverResult<Option<GqlValue>> {
                  
                 | 
            
80  | 
              
                impl<T: FieldResolver> FieldResolver for Box<T> {
                 | 
            
81  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
82  | 
              
                    async fn resolve_field(&self, ctx: &Context<'_>) -> ResolverResult<Option<GqlValue>> {
                 | 
            
694  | 
              
                #[inline(always)]
                 | 
            
695  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
696  | 
              
                #[cfg_attr(docs_rs, doc(cfg(target_feature = "sse")))]
                  
                 | 
            
710  | 
              
                #[inline(always)]
                 | 
            
711  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
712  | 
              
                #[cfg_attr(docs_rs, doc(cfg(target_feature = "sse")))]
                 | 
            
1469  | 
              
                #[inline(always)]
                 | 
            
1470  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
1471  | 
              
                #[cfg_attr(docs_rs, doc(cfg(target_feature = "sse2")))]
                  
                 | 
            
1484  | 
              
                #[inline(always)]
                 | 
            
1485  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
1486  | 
              
                #[cfg_attr(docs_rs, doc(cfg(target_feature = "sse2")))]
                 | 
            
25  | 
              
                    #[must_use]
                 | 
            
26  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
27  | 
              
                    pub fn byte(&self) -> Option<u8> {
                  
                 | 
            
33  | 
              
                    #[must_use]
                 | 
            
34  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
35  | 
              
                    pub fn consume(self) -> Self {
                 | 
            
25  | 
              
                    #[must_use]
                 | 
            
26  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
27  | 
              
                    pub fn byte(&self) -> Option<u8> {
                  
                 | 
            
33  | 
              
                    #[must_use]
                 | 
            
34  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
35  | 
              
                    pub fn consume(self) -> Self {
                 | 
            
49  | 
              
                    }
                 | 
            
50  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
51  | 
              
                    pub fn get(&self, slot: &Slot) -> Option<&Hash> {
                 | 
            
166  | 
              
                /// Serialize a boolean true as "yes".
                 | 
            
167  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
168  | 
              
                fn yes_from_bool<S>(boolean: &bool, s: S) -> std::result::Result<S::Ok, S::Error>
                  
                 | 
            
178  | 
              
                /// Check if false.
                 | 
            
179  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
180  | 
              
                fn is_false(boolean: &bool) -> bool {
                 | 
            
309  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
310  | 
              
                fn is_false(b: &bool) -> bool {
                 | 
            
46  | 
              
                  ];
                 | 
            
47  | 
              
                  #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
48  | 
              
                  pub fn write_to_out_protocol(&self, o_prot: &mut dyn TOutputProtocol) -> thrift::Result<()> {
                 | 
            
39  | 
              
                  ];
                 | 
            
40  | 
              
                  #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
41  | 
              
                  pub fn write_to_out_protocol(&self, o_prot: &mut dyn TOutputProtocol) -> thrift::Result<()> {
                 | 
            
413  | 
              
                    // https://github.com/rust-lang/rust-clippy/issues/5953 is fixed
                 | 
            
414  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
415  | 
              
                    pub fn raw(&self) -> *const sys::SDL_Rect {
                  
                 | 
            
777  | 
              
                    // https://github.com/rust-lang/rust-clippy/issues/5953 is fixed
                 | 
            
778  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
779  | 
              
                    pub fn raw(&self) -> *const sys::SDL_Point {
                 | 
            
244  | 
              
                    // https://github.com/rust-lang/rust-clippy/issues/5953 is fixed
                 | 
            
245  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
246  | 
              
                    pub fn raw(&self) -> *mut sys::SDL_Renderer {
                  
                 | 
            
829  | 
              
                    // https://github.com/rust-lang/rust-clippy/issues/5953 is fixed
                 | 
            
830  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
831  | 
              
                    pub fn raw(&self) -> *mut sys::SDL_Renderer {
                  
                 | 
            
977  | 
              
                    // https://github.com/rust-lang/rust-clippy/issues/5953 is fixed
                 | 
            
978  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
979  | 
              
                    pub fn raw(&self) -> *mut sys::SDL_Renderer {
                  
                 | 
            
2343  | 
              
                    // https://github.com/rust-lang/rust-clippy/issues/5953 is fixed
                 | 
            
2344  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
2345  | 
              
                    pub const fn raw(&self) -> *mut sys::SDL_Texture {
                  
                 | 
            
2540  | 
              
                    // https://github.com/rust-lang/rust-clippy/issues/5953 is fixed
                 | 
            
2541  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
2542  | 
              
                    pub const fn raw(&self) -> *mut sys::SDL_Texture {
                 | 
            
20  | 
              
                    // https://github.com/rust-lang/rust-clippy/issues/5953 is fixed
                 | 
            
21  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
22  | 
              
                    pub unsafe fn raw(&self) -> *mut sys::SDL_RWops {
                 | 
            
332  | 
              
                    // https://github.com/rust-lang/rust-clippy/issues/5953 is fixed
                 | 
            
333  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
334  | 
              
                    #[doc(alias = "SDL_Surface")]
                 | 
            
313  | 
              
                    // https://github.com/rust-lang/rust-clippy/issues/5953 is fixed
                 | 
            
314  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
315  | 
              
                    unsafe fn raw(&self) -> *mut ttf::TTF_Font {
                 | 
            
714  | 
              
                    /// Converts the pointer to a raw pointer (without the tag).
                 | 
            
715  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
716  | 
              
                    pub(crate) fn as_raw(&self) -> *const T {
                  
                 | 
            
728  | 
              
                    /// Returns `true` if the pointer is null.
                 | 
            
729  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
730  | 
              
                    pub(crate) fn is_null(&self) -> bool {
                  
                 | 
            
751  | 
              
                    /// `Release` and `Acquire` orderings.
                 | 
            
752  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
753  | 
              
                    #[allow(clippy::should_implement_trait)]
                  
                 | 
            
775  | 
              
                    /// `Release` and `Acquire` orderings.
                 | 
            
776  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
777  | 
              
                    pub(crate) unsafe fn as_ref(&self) -> Option<&'g T> {
                  
                 | 
            
804  | 
              
                    /// Returns the tag stored within the pointer.
                 | 
            
805  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
806  | 
              
                    pub(crate) fn tag(&self) -> usize {
                 | 
            
151  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
152  | 
              
                    pub fn timestamp_from(&self, instant: Instant) -> TimeStamp {
                  
                 | 
            
162  | 
              
                    // Get Instant closest to `now` that is consistent with `timestamp`
                 | 
            
163  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
164  | 
              
                    pub fn instant_from(&self, now: Instant, timestamp: TimeStamp) -> Instant {
                 | 
            
139  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
140  | 
              
                fn is_zero(val: &u32) -> bool {
                 | 
            
329  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
330  | 
              
                    pub fn serialize<S: Serializer>(_: &bool, serializer: S) -> Result<S::Ok, S::Error> {
                 | 
            
287  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
288  | 
              
                    pub fn serialize<S: Serializer>(id: &u64, serializer: S) -> Result<S::Ok, S::Error> {
                 | 
            
73  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
74  | 
              
                    pub fn serialize<S: Serializer>(value: &u16, serializer: S) -> Result<S::Ok, S::Error> {
                  
                 | 
            
133  | 
              
                        #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
134  | 
              
                        pub fn serialize<S: Serializer>(
                 | 
            
26  | 
              
                /// Helper function for `#[serde(skip_serializing_if = "is_false")]`
                 | 
            
27  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
28  | 
              
                pub fn is_false(v: &bool) -> bool {
                 | 
            
118  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)] // The macro inserts a ref and rustc won't deref it.
                 | 
            
119  | 
              
                fn is_valid_cd_type(t: &u16) -> bool {
                 | 
            
27  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
28  | 
              
                pub fn derive_key(shared_key: &sgx_ec256_dh_shared_t,
                 | 
            
228  | 
              
                // Help serde avoid serializing this glTF 2.0 default value.
                 | 
            
229  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
230  | 
              
                fn is_normalized_default(b: &bool) -> bool {
                 | 
            
111  | 
              
                // Help serde avoid serializing this glTF 2.0 default value.
                 | 
            
112  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
113  | 
              
                fn is_primitive_mode_default(mode: &Checked<Mode>) -> bool {
                 | 
            
188  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
189  | 
              
                pub fn serialize_location<S>(loc: &Location, serializer: S) -> Result<S::Ok, S::Error>
                 | 
            
314  | 
              
                    /// Obtain a pointer to the first byte.
                 | 
            
315  | 
              
                    #[cfg_attr(feature = "cargo-clippy", allow(trivially_copy_pass_by_ref))]
                 | 
            
316  | 
              
                    #[inline]
                  
                 | 
            
321  | 
              
                    /// Borrow as a byte slice.
                 | 
            
322  | 
              
                    #[cfg_attr(feature = "cargo-clippy", allow(trivially_copy_pass_by_ref))]
                 | 
            
323  | 
              
                    #[inline]
                  
                 | 
            
329  | 
              
                    /// Borrow as a &[`str`].
                 | 
            
330  | 
              
                    #[cfg_attr(feature = "cargo-clippy", allow(trivially_copy_pass_by_ref))]
                 | 
            
331  | 
              
                    #[inline]
                 | 
            
15  | 
              
                        #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
16  | 
              
                        pub fn serialize<S: Serializer>(id: &u64, serializer: S) -> Result<S::Ok, S::Error> {
                 | 
            
33  | 
              
                    // passed by reference because that's what serde does.
                 | 
            
34  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
35  | 
              
                    pub fn serialize<S: Serializer>(_: &bool, serializer: S) -> Result<S::Ok, S::Error> {
                  
                 | 
            
44  | 
              
                // Clippy situation is the same as above.
                 | 
            
45  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
46  | 
              
                fn is_false(value: &bool) -> bool {
                 | 
            
69  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
70  | 
              
                    fn translate_pollfd_event(pfd: &PollFd) -> Option<(RawFd, Events)> {
                 | 
            
489  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
490  | 
              
                #[cfg(feature = "serde")]
                  
                 | 
            
506  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
507  | 
              
                #[cfg(all(
                 | 
            
135  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
136  | 
              
                #[cfg(feature = "serde")]
                 | 
            
116  | 
              
                    // Define the objective function
                 | 
            
117  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
118  | 
              
                    #[allow(clippy::unnecessary_wraps)]
                 | 
            
92  | 
              
                    /// Converts an `Error` to the raw error code.
                 | 
            
93  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
94  | 
              
                    pub fn to_err_code(&self) -> c_int {
                 | 
            
239  | 
              
                    #[allow(clippy::len_without_is_empty)]
                 | 
            
240  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
241  | 
              
                    impl SocketAddrV4 {
                  
                 | 
            
325  | 
              
                    #[allow(clippy::len_without_is_empty)]
                 | 
            
326  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
327  | 
              
                    impl SocketAddrV6 {
                 | 
            
49  | 
              
                    }
                 | 
            
50  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
51  | 
              
                    pub fn get(&self, slot: &Slot) -> Option<&Hash> {
                 | 
            
40  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
41  | 
              
                fn is_false(boolean: &bool) -> bool {
                 | 
            
586  | 
              
                	#[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
587  | 
              
                	const fn is_span_horizontal(&self) -> bool {
                  
                 | 
            
594  | 
              
                	#[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
595  | 
              
                	const fn is_span_margin(&self) -> bool {
                 | 
            
17  | 
              
                // This is required to use in macro `serialize_with`.
                 | 
            
18  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
19  | 
              
                pub fn serialize_pt<S: Serializer>(pt: &Pt, serializer: S) -> result::Result<S::Ok, S::Error> {
                 | 
            
146  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
147  | 
              
                fn is_false(b: &bool) -> bool {
                 | 
            
39  | 
              
                #[allow(clippy::inefficient_to_string)]
                 | 
            
40  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
41  | 
              
                #[allow(clippy::too_many_arguments)]
                 | 
            
820  | 
              
                    // Because of this cheating, we don't expose it outside Starlark.
                 | 
            
821  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
822  | 
              
                    pub(crate) fn unpack_str<'v>(&'v self) -> Option<&'v str> {
                 | 
            
192  | 
              
                    /// Obtain the [`FrozenDict`] pointed at by a [`FrozenValue`].
                 | 
            
193  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
194  | 
              
                    // We need a lifetime because FrozenValue doesn't contain the right lifetime
                 | 
            
305  | 
              
                    /// Obtain the [`FrozenList`] pointed at by a [`FrozenValue`].
                 | 
            
306  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
307  | 
              
                    // We need a lifetime because FrozenValue doesn't contain the right lifetime
                 | 
            
163  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
164  | 
              
                fn char_is_cjk_ideograph(c: &char) -> bool {
                 | 
            
58  | 
              
                    /// Used in serde `skip_serializing_if` attribute.
                 | 
            
59  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
60  | 
              
                    #[inline]
                 | 
            
1  | 
              
                /// Used in serde `skip_serializing_if` attribute.
                 | 
            
2  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
3  | 
              
                #[inline]
                 | 
            
517  | 
              
                    fn outer(self) -> Self::Ret {
                 | 
            
518  | 
              
                        #[cfg_attr(feature = "cargo-clippy", allow(trivially_copy_pass_by_ref))]
                 | 
            
519  | 
              
                        fn is_outer(attr: &&Attribute) -> bool {
                  
                 | 
            
528  | 
              
                    fn inner(self) -> Self::Ret {
                 | 
            
529  | 
              
                        #[cfg_attr(feature = "cargo-clippy", allow(trivially_copy_pass_by_ref))]
                 | 
            
530  | 
              
                        fn is_inner(attr: &&Attribute) -> bool {
                 | 
            
185  | 
              
                    /// Convert `SystemTime` to `TAI64N`.
                 | 
            
186  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
187  | 
              
                    #[cfg(feature = "std")]
                 | 
            
291  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
292  | 
              
                fn is_false(b: &bool) -> bool {
                 | 
            
24  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
25  | 
              
                pub(crate) fn if_false(v: &bool) -> bool {
                 | 
            
5  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
6  | 
              
                fn pretty_on(pretty_print: &bool) -> bool {
                 | 
            
10  | 
              
                /// Serializes [`io::ErrorKind`] as a `u32`.
                 | 
            
11  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)] // Exact fn signature required by serde derive
                 | 
            
12  | 
              
                pub fn serialize_io_error_kind_as_u32<S>(
                 | 
            
33  | 
              
                /// Serializes [`io::ErrorKind`] as a `u32`.
                 | 
            
34  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)] // Exact fn signature required by serde derive
                 | 
            
35  | 
              
                pub fn serialize_io_error_kind_as_u32<S>(
                 | 
            
72  | 
              
                  /// Gets the short name of this PackageType.
                 | 
            
73  | 
              
                  #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
74  | 
              
                  pub fn short_name(&self) -> &'static str {
                 | 
            
379  | 
              
                impl Format {
                 | 
            
380  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
381  | 
              
                    fn as_mpv_format(&self) -> MpvFormat {
                 | 
            
13  | 
              
                    clippy::missing_safety_doc,
                 | 
            
14  | 
              
                    clippy::trivially_copy_pass_by_ref,
                 | 
            
15  | 
              
                    clippy::unnecessary_wraps,
                 | 
            
131  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
132  | 
              
                fn is_true(boolean: &bool) -> bool {
                 | 
            
218  | 
              
                    clippy::too_many_arguments,
                 | 
            
219  | 
              
                    clippy::trivially_copy_pass_by_ref
                 | 
            
220  | 
              
                )]
                 | 
            
77  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
78  | 
              
                impl SelectionParent {
                 | 
            
77  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
78  | 
              
                impl SelectionParent {
                 | 
            
83  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
84  | 
              
                    pub fn serialize<S>(ond: &Option<NaiveDate>, serializer: S) -> Result<S::Ok, S::Error>
                  
                 | 
            
144  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
145  | 
              
                    pub fn serialize<S>(u: &u16, serializer: S) -> Result<S::Ok, S::Error>
                  
                 | 
            
192  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
193  | 
              
                    pub fn serialize<S>(b: &bool, serializer: S) -> Result<S::Ok, S::Error>
                 | 
            
117  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
118  | 
              
                    fn not(bool: &bool) -> bool {
                 | 
            
117  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
118  | 
              
                    fn not(bool: &bool) -> bool {
                 | 
            
119  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
120  | 
              
                    fn not(bool: &bool) -> bool {
                 | 
            
117  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
118  | 
              
                    fn not(bool: &bool) -> bool {
                 | 
            
907  | 
              
                #[rustfmt::skip]
                 | 
            
908  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)] // TlsRecordHeader is only 6 bytes, but we prefer not breaking current API
                 | 
            
909  | 
              
                pub fn parse_tls_record_with_header<'i, 'hdr>(i:&'i [u8], hdr:&'hdr TlsRecordHeader ) -> IResult<&'i [u8], Vec<TlsMessage<'i>>> {
                 | 
            
3  | 
              
                /// FIXME fix pass by ref
                 | 
            
4  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
5  | 
              
                pub fn cmp_tokens(ch: &char, chars: &[char]) -> bool {
                 | 
            
222  | 
              
                    #[cfg(not(feature = "http"))]
                 | 
            
223  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref, clippy::unused_self)]
                 | 
            
224  | 
              
                    fn handle_http(&self, url: Url) -> Result<Box<dyn Read + Send>, TransportError> {
                 | 
            
252  | 
              
                    #[cfg(feature = "serde")]
                 | 
            
253  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
254  | 
              
                    fn is_normal(&self) -> bool {
                 | 
            
96  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)] //serde requires by ref here
                 | 
            
97  | 
              
                    pub(crate) fn serialize<S: Serializer>(_x: &Span, s: S) -> Result<S::Ok, S::Error> {
                 | 
            
8  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
9  | 
              
                pub(super) fn level<S: Serializer>(level: &Level, serializer: S) -> Result<S::Ok, S::Error> {
                 | 
            
6  | 
              
                /// Serialization function, to be used with `serialize_with`.
                 | 
            
7  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
8  | 
              
                pub fn serialize<S>(pid: &Pid, ser: S) -> Result<S::Ok, S::Error>
                 | 
            
118  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)] // It's the signature iterator wants.
                 | 
            
119  | 
              
                #[inline]
                 | 
            
98  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
99  | 
              
                fn fixed_width<S>(val: &f64, serializer: S) -> Result<S::Ok, S::Error>
                 | 
            
52  | 
              
                    // Allow this lint because taking a reference is required by serde.
                 | 
            
53  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
54  | 
              
                    pub fn serialize<S: Serializer>(value: &u16, serializer: S) -> Result<S::Ok, S::Error> {
                 | 
            
8  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
9  | 
              
                pub(crate) fn is_false(value: &bool) -> bool {
                 | 
            
44  | 
              
                    // passed by reference because that's what serde does.
                 | 
            
45  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
46  | 
              
                    pub fn serialize<S: Serializer>(_: &bool, serializer: S) -> Result<S::Ok, S::Error> {
                 | 
            
343  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
344  | 
              
                fn not(p: &bool) -> bool {
                 | 
            
543  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
544  | 
              
                    pub fn serialize<S>(c: &Component, serializer: S) -> Result<S::Ok, S::Error>
                  
                 | 
            
565  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
566  | 
              
                    pub fn serialize<S>(c: &Option<Component>, serializer: S) -> Result<S::Ok, S::Error>
                  
                 | 
            
592  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
593  | 
              
                    pub fn serialize<S>(c: &Option<Component>, serializer: S) -> Result<S::Ok, S::Error>
                 | 
            
9  | 
              
                impl FourCC {
                 | 
            
10  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
11  | 
              
                    /// Returns a pixelformat as four character code
                 | 
            
227  | 
              
                impl<'a> BloomRef<'a> {
                 | 
            
228  | 
              
                	#[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
229  | 
              
                	pub fn is_empty(&self) -> bool {
                  
                 | 
            
233  | 
              
                	#[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
234  | 
              
                	pub fn contains_input(&self, input: Input<'_>) -> bool {
                  
                 | 
            
239  | 
              
                	#[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
240  | 
              
                	pub fn contains_bloom<'b, B>(&self, bloom: B) -> bool
                  
                 | 
            
257  | 
              
                	#[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
258  | 
              
                	pub fn data(&self) -> &'a [u8; BLOOM_SIZE] {
                 | 
            
40  | 
              
                impl Header {
                 | 
            
41  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
42  | 
              
                    pub unsafe fn from_ptr(ptr: &()) -> Option<&Self> {
                 | 
            
96  | 
              
                        clippy::unnecessary_wraps,
                 | 
            
97  | 
              
                        clippy::trivially_copy_pass_by_ref,
                 | 
            
98  | 
              
                        clippy::unused_self
                  
                 | 
            
121  | 
              
                        clippy::unnecessary_wraps,
                 | 
            
122  | 
              
                        clippy::trivially_copy_pass_by_ref,
                 | 
            
123  | 
              
                        clippy::unused_self
                  
                 | 
            
161  | 
              
                        clippy::unnecessary_wraps,
                 | 
            
162  | 
              
                        clippy::trivially_copy_pass_by_ref,
                 | 
            
163  | 
              
                        clippy::unused_self
                  
                 | 
            
186  | 
              
                        clippy::unnecessary_wraps,
                 | 
            
187  | 
              
                        clippy::trivially_copy_pass_by_ref,
                 | 
            
188  | 
              
                        clippy::unused_self
                  
                 | 
            
202  | 
              
                        clippy::unnecessary_wraps,
                 | 
            
203  | 
              
                        clippy::trivially_copy_pass_by_ref,
                 | 
            
204  | 
              
                        clippy::unused_self
                 | 
            
102  | 
              
                    #[inline]
                 | 
            
103  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
104  | 
              
                    #[allow(clippy::useless_transmute)]
                 | 
            
174  | 
              
                #[cfg_attr(feature = "cargo-clippy", allow(trivially_copy_pass_by_ref))]
                 | 
            
175  | 
              
                fn serialize_uppercase_bool<S: Serializer>(
                 | 
            
49  | 
              
                    }
                 | 
            
50  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
51  | 
              
                    pub fn get(&self, slot: &Slot) -> Option<&Hash> {
                 | 
            
11  | 
              
                /// works.
                 | 
            
12  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
13  | 
              
                pub(crate) fn bool_to_int<S>(x: &Option<bool>, serializer: S) -> Result<S::Ok, S::Error>
                 | 
            
15  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
16  | 
              
                fn is_not(b: &bool) -> bool {
                  
                 | 
            
53  | 
              
                impl MatchingPolicy {
                 | 
            
54  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
55  | 
              
                    #[inline]
                  
                 | 
            
61  | 
              
                impl InvocationPolicy {
                 | 
            
62  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
63  | 
              
                    #[inline]
                 | 
            
292  | 
              
                impl __wasi_prestat_t {
                 | 
            
293  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
294  | 
              
                    pub fn tagged(&self) -> Option<PrestatEnum> {
                 | 
            
275  | 
              
                impl Prestat {
                 | 
            
276  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
277  | 
              
                    pub fn tagged(&self) -> Option<PrestatEnum> {
                 | 
            
119  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
120  | 
              
                fn is_false(v: &bool) -> bool {
                 | 
            
509  | 
              
                  /// Loads the `f32` address into all lanes.
                 | 
            
510  | 
              
                  #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
511  | 
              
                  #[inline(always)]
                  
                 | 
            
516  | 
              
                  /// Loads the `f32` address into lane 0, other lanes are `0.0`.
                 | 
            
517  | 
              
                  #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
518  | 
              
                  #[inline(always)]
                 | 
            
1506  | 
              
                  /// Load the `f64` addressed into the low lane, high lane `0.0`.
                 | 
            
1507  | 
              
                  #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
1508  | 
              
                  #[inline(always)]
                  
                 | 
            
1513  | 
              
                  /// Replace high lane with the float referenced, low lane unaffected.
                 | 
            
1514  | 
              
                  #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
1515  | 
              
                  #[inline(always)]
                  
                 | 
            
1520  | 
              
                  /// Replace low lane with the float referenced, high lane unaffected.
                 | 
            
1521  | 
              
                  #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
1522  | 
              
                  #[inline(always)]
                 | 
            
109  | 
              
                  #[inline(always)]
                 | 
            
110  | 
              
                  #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
111  | 
              
                  pub fn load_splat(addr: &f64) -> Self {
                 | 
            
39  | 
              
                // So using `self` argument is efficient on wasm32, but not on x86_64.
                 | 
            
40  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
41  | 
              
                impl Pos {
                 | 
            
31  | 
              
                // So using `self` argument is efficient on wasm32, but not on x86_64.
                 | 
            
32  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
33  | 
              
                impl<'a, R: Rng> LargeBoardGen<'a, R> {
                 | 
            
15  | 
              
                    // it that way for consistency reasons.
                 | 
            
16  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
17  | 
              
                    /// Executes the lint against the given project context.
                 | 
            
91  | 
              
                fn parse_malformed_date(i: &[u8]) -> ParseResult<OffsetDateTime> {
                 | 
            
92  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
93  | 
              
                    // fn check_char(b: &u8) -> bool {
                 | 
            
14  | 
              
                    // it that way for consistency reasons.
                 | 
            
15  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
16  | 
              
                    /// Executes the lint against the given project context.
                 | 
            
73  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
74  | 
              
                pub(super) fn partial_assign<T: AsRef<syn::Expr>>(
                 | 
            
51  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
52  | 
              
                pub(super) fn match_into_map<'a, 'b: 'a>(
                  
                 | 
            
59  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
60  | 
              
                pub(super) fn match_into_vec<'a, 'b: 'a>(
                 | 
            
51  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
52  | 
              
                pub(super) fn match_into_map<'a, 'b: 'a>(
                  
                 | 
            
59  | 
              
                #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
60  | 
              
                pub(super) fn match_into_vec<'a, 'b: 'a>(
                 | 
            
115  | 
              
                    /// with the given SubscriptionToken
                 | 
            
116  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
117  | 
              
                    pub fn read(&self, token: &SubscriptionToken) -> impl Iterator<Item = &E> {
                 | 
            
68  | 
              
                    #[inline]
                 | 
            
69  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
70  | 
              
                    pub(super) fn get_mapping(&self, prefixid: &ZInt) -> Option<&std::sync::Arc<Resource>> {
                 | 
            
107  | 
              
                    #[inline]
                 | 
            
108  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
109  | 
              
                    pub(crate) fn get_mapping<'a>(
                 | 
            
146  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
147  | 
              
                    pub(crate) fn get_mapping<'a>(
                 | 
            
58  | 
              
                    #[allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
59  | 
              
                    pub(super) fn get_mapping(&self, prefixid: &ZInt) -> Option<&std::sync::Arc<Resource>> {
                 | 
            
25  | 
              
                    clippy::too_many_arguments,
                 | 
            
26  | 
              
                    clippy::trivially_copy_pass_by_ref,
                 | 
            
27  | 
              
                    clippy::used_underscore_binding,
                 | 
            
3  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
52  | 
              
                // for compatibility with methods on char and u8
                 | 
            
53  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
54  | 
              
                // In preparation for feature `unsafe_block_in_unsafe_fn` (https://github.com/rust-lang/rust/issues/71668)
                 | 
            
1  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
2  | 
              
                use crate::prelude::*;
                 | 
            
5  | 
              
                //! For more information, read the [book](https://djc.github.io/askama/filters.html).
                 | 
            
6  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
177  | 
              
                #![warn(missing_docs)]
                 | 
            
178  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
179  | 
              
                #![allow(clippy::upper_case_acronyms)]
                 | 
            
82  | 
              
                #![allow(clippy::needless_pass_by_value)]
                 | 
            
83  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
84  | 
              
                #![allow(clippy::write_with_newline)]
                 | 
            
10  | 
              
                    clippy::needless_return,
                 | 
            
11  | 
              
                    clippy::trivially_copy_pass_by_ref,
                 | 
            
12  | 
              
                    clippy::unused_async
                 | 
            
10  | 
              
                    clippy::needless_return,
                 | 
            
11  | 
              
                    clippy::trivially_copy_pass_by_ref,
                 | 
            
12  | 
              
                    clippy::unused_async
                 | 
            
146  | 
              
                #![doc(html_root_url = "https://docs.rs/blinkt/0.7.0")]
                 | 
            
147  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
20  | 
              
                #![deny(missing_docs)]
                 | 
            
21  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref, clippy::new_ret_no_self)]
                 | 
            
1  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
13  | 
              
                    clippy::too_many_lines,
                 | 
            
14  | 
              
                    clippy::trivially_copy_pass_by_ref
                 | 
            
15  | 
              
                )]
                 | 
            
3  | 
              
                    clippy::redundant_clone,
                 | 
            
4  | 
              
                    clippy::trivially_copy_pass_by_ref
                 | 
            
5  | 
              
                )]
                 | 
            
400  | 
              
                        redundant_field_names,
                 | 
            
401  | 
              
                        trivially_copy_pass_by_ref,
                 | 
            
402  | 
              
                    )
                 | 
            
400  | 
              
                        redundant_field_names,
                 | 
            
401  | 
              
                        trivially_copy_pass_by_ref,
                 | 
            
402  | 
              
                    )
                 | 
            
6  | 
              
                //! to similar values on the rust side.
                 | 
            
7  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
3  | 
              
                    clippy::redundant_clone,
                 | 
            
4  | 
              
                    clippy::trivially_copy_pass_by_ref
                 | 
            
5  | 
              
                )]
                 | 
            
24  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
25  | 
              
                #![cfg_attr(feature = "nightly", feature(test))]
                 | 
            
24  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
25  | 
              
                #![cfg_attr(feature = "nightly", feature(test))]
                 | 
            
283  | 
              
                    clippy::shadow_unrelated,
                 | 
            
284  | 
              
                    clippy::trivially_copy_pass_by_ref,
                 | 
            
285  | 
              
                    clippy::unreadable_literal
                 | 
            
14  | 
              
                	clippy::or_fun_call,
                 | 
            
15  | 
              
                	clippy::trivially_copy_pass_by_ref,
                 | 
            
16  | 
              
                	clippy::option_option,
                 | 
            
23  | 
              
                    clippy::too_many_lines,
                 | 
            
24  | 
              
                    clippy::trivially_copy_pass_by_ref
                 | 
            
25  | 
              
                )]
                 | 
            
1  | 
              
                #![allow(clippy::blacklisted_name, clippy::redundant_clone, clippy::trivially_copy_pass_by_ref)]
                 | 
            
3  | 
              
                #![allow(clippy::cognitive_complexity)]
                 | 
            
4  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
5  | 
              
                #![allow(clippy::unknown_clippy_lints)]
                 | 
            
3  | 
              
                #![allow(clippy::cognitive_complexity)]
                 | 
            
4  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
5  | 
              
                #![allow(clippy::unknown_clippy_lints)]
                 | 
            
1  | 
              
                #![allow(clippy::eq_op, clippy::trivially_copy_pass_by_ref)]
                 | 
            
1  | 
              
                #![allow(clippy::eq_op, clippy::trivially_copy_pass_by_ref, dead_code)]
                 | 
            
86  | 
              
                #![allow(clippy::transmute_ptr_to_ptr)]
                 | 
            
87  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
88  | 
              
                #![allow(clippy::many_single_char_names)]
                 | 
            
18  | 
              
                // bitflags implementation of the inner Modifiers type.
                 | 
            
19  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
27  | 
              
                #![deny(missing_docs)]
                 | 
            
28  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
29  | 
              
                #![allow(clippy::derive_hash_xor_eq)]
                 | 
            
3  | 
              
                // crate-specific exceptions:
                 | 
            
4  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)] // for &ark::applet::Applet
                 | 
            
1  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
2  | 
              
                use crate::prelude::*;
                 | 
            
1  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
2  | 
              
                use crate::prelude::*;
                 | 
            
28  | 
              
                    clippy::module_inception,
                 | 
            
29  | 
              
                    clippy::trivially_copy_pass_by_ref
                 | 
            
30  | 
              
                )]
                 | 
            
28  | 
              
                    clippy::module_name_repetitions,
                 | 
            
29  | 
              
                    clippy::trivially_copy_pass_by_ref
                 | 
            
30  | 
              
                )]
                 | 
            
1  | 
              
                #![recursion_limit="128"]
                 | 
            
2  | 
              
                #![cfg_attr(feature = "cargo-clippy", allow(trivially_copy_pass_by_ref))]
                 | 
            
16  | 
              
                // to `ParameterizedBenchmark::new()`.
                 | 
            
17  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
16  | 
              
                // to `ParameterizedBenchmark::new()`.
                 | 
            
17  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
63  | 
              
                    clippy::useless_transmute,
                 | 
            
64  | 
              
                    clippy::trivially_copy_pass_by_ref,
                 | 
            
65  | 
              
                    clippy::too_many_arguments,
                 | 
            
1  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
15  | 
              
                */
                 | 
            
16  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref, clippy::ptr_arg)]
                 | 
            
15  | 
              
                */
                 | 
            
16  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
15  | 
              
                */
                 | 
            
16  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
17  | 
              
                use super::joint_path_planner::JointPathPlanner;
                 | 
            
2  | 
              
                #![allow(clippy::too_many_arguments)]
                 | 
            
3  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
4  | 
              
                #![allow(clippy::unreadable_literal)]
                 | 
            
2  | 
              
                #![allow(clippy::too_many_arguments)]
                 | 
            
3  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
4  | 
              
                #![allow(clippy::unreadable_literal)]
                 | 
            
14  | 
              
                #![allow(clippy::transmute_ptr_to_ptr)]
                 | 
            
15  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
16  | 
              
                #![allow(clippy::unreadable_literal)]
                 | 
            
19  | 
              
                    clippy::range_plus_one,
                 | 
            
20  | 
              
                    clippy::trivially_copy_pass_by_ref,
                 | 
            
21  | 
              
                    clippy::nonminimal_bool,
                 | 
            
19  | 
              
                    clippy::range_plus_one,
                 | 
            
20  | 
              
                    clippy::trivially_copy_pass_by_ref,
                 | 
            
21  | 
              
                    clippy::nonminimal_bool,
                 | 
            
129  | 
              
                    clippy::needless_pass_by_value,
                 | 
            
130  | 
              
                    clippy::trivially_copy_pass_by_ref,
                 | 
            
131  | 
              
                    clippy::type_complexity
                 | 
            
485  | 
              
                pub mod close {
                 | 
            
486  | 
              
                    #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
487  | 
              
                    /// Check if two `f32`s are close enough to be considered equal
                 | 
            
1  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
22  | 
              
                #![warn(missing_docs)]
                 | 
            
23  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
1  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
2  | 
              
                use libhydrogen_sys as ffi;
                 | 
            
526  | 
              
                	#![allow(clippy::inline_always)] // Trivial bit manipulation.
                 | 
            
527  | 
              
                	#![allow(clippy::trivially_copy_pass_by_ref)] // Erased by inlining.
                 | 
            
1  | 
              
                #![cfg_attr(feature = "used_linker", feature(used_with_arg))]
                 | 
            
2  | 
              
                #![allow(clippy::needless_lifetimes, clippy::trivially_copy_pass_by_ref)]
                 | 
            
1  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
11  | 
              
                    clippy::cast_possible_truncation,
                 | 
            
12  | 
              
                    clippy::trivially_copy_pass_by_ref
                 | 
            
13  | 
              
                )]
                 | 
            
8  | 
              
                    clippy::cast_possible_truncation,
                 | 
            
9  | 
              
                    clippy::trivially_copy_pass_by_ref
                 | 
            
10  | 
              
                )]
                 | 
            
1  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
23  | 
              
                #![allow(deprecated)]
                 | 
            
24  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
25  | 
              
                #![allow(clippy::from_over_into)]
                 | 
            
23  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
12  | 
              
                #![warn(unused_attributes)]
                 | 
            
13  | 
              
                #![allow(bad_style, deprecated, overflowing_literals, unused_macros, clippy::cast_lossless, clippy::cast_ptr_alignment, clippy::len_without_is_empty, clippy::trivially_copy_pass_by_ref, clippy::unreadable_literal)]
                 | 
            
14  | 
              
                #[doc(hidden)]
                 | 
            
4  | 
              
                #![cfg_attr(feature = "cargo-clippy", allow(too_many_arguments))] // API requirement
                 | 
            
5  | 
              
                #![cfg_attr(feature = "cargo-clippy", allow(trivially_copy_pass_by_ref))] // API requirement
                 | 
            
6  | 
              
                #![cfg_attr(feature = "cargo-clippy", allow(cast_ptr_alignment))] // required by allocator
                 | 
            
4  | 
              
                #![cfg_attr(feature = "cargo-clippy", allow(too_many_arguments))] // API requirement
                 | 
            
5  | 
              
                #![cfg_attr(feature = "cargo-clippy", allow(trivially_copy_pass_by_ref))] // API requirement
                 | 
            
6  | 
              
                #![cfg_attr(feature = "cargo-clippy", allow(cast_ptr_alignment))] // required by allocator
                 | 
            
15  | 
              
                */
                 | 
            
16  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref, clippy::ptr_arg)]
                 | 
            
15  | 
              
                */
                 | 
            
16  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
15  | 
              
                */
                 | 
            
16  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
17  | 
              
                use k::nalgebra as na;
                 | 
            
13  | 
              
                #![allow(clippy::useless_transmute)]
                 | 
            
14  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
15  | 
              
                #![allow(clippy::cast_lossless)]
                 | 
            
10  | 
              
                    clippy::shadow_unrelated,
                 | 
            
11  | 
              
                    clippy::trivially_copy_pass_by_ref,
                 | 
            
12  | 
              
                    clippy::unnecessary_wraps,
                 | 
            
105  | 
              
                    clippy::shadow_unrelated,
                 | 
            
106  | 
              
                    clippy::trivially_copy_pass_by_ref,
                 | 
            
107  | 
              
                    clippy::unnecessary_wraps,
                 | 
            
8  | 
              
                #![allow(clippy::cast_lossless)]
                 | 
            
9  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
8  | 
              
                #![allow(clippy::cast_lossless)]
                 | 
            
9  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
8  | 
              
                #![allow(clippy::cast_lossless)]
                 | 
            
9  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
8  | 
              
                #![allow(clippy::cast_lossless)]
                 | 
            
9  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
8  | 
              
                #![allow(clippy::cast_lossless)]
                 | 
            
9  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
8  | 
              
                #![allow(clippy::cast_lossless)]
                 | 
            
9  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
8  | 
              
                #![allow(clippy::cast_lossless)]
                 | 
            
9  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
8  | 
              
                #![allow(clippy::cast_lossless)]
                 | 
            
9  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
8  | 
              
                #![allow(clippy::cast_lossless)]
                 | 
            
9  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
8  | 
              
                #![allow(clippy::cast_lossless)]
                 | 
            
9  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
8  | 
              
                #![allow(clippy::cast_lossless)]
                 | 
            
9  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
8  | 
              
                #![allow(clippy::cast_lossless)]
                 | 
            
9  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
8  | 
              
                #![allow(clippy::cast_lossless)]
                 | 
            
9  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
8  | 
              
                #![allow(clippy::cast_lossless)]
                 | 
            
9  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
8  | 
              
                #![allow(clippy::cast_lossless)]
                 | 
            
9  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
8  | 
              
                #![allow(clippy::cast_lossless)]
                 | 
            
9  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
8  | 
              
                #![allow(clippy::cast_lossless)]
                 | 
            
9  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
8  | 
              
                #![allow(clippy::cast_lossless)]
                 | 
            
9  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
8  | 
              
                #![allow(clippy::cast_lossless)]
                 | 
            
9  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
8  | 
              
                #![allow(clippy::cast_lossless)]
                 | 
            
9  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
330  | 
              
                    clippy::return_self_not_must_use,
                 | 
            
331  | 
              
                    clippy::trivially_copy_pass_by_ref,
                 | 
            
332  | 
              
                    clippy::unused_self,
                 | 
            
60  | 
              
                	clippy::inline_always,
                 | 
            
61  | 
              
                	clippy::trivially_copy_pass_by_ref,
                 | 
            
62  | 
              
                	clippy::must_use_candidate
                 | 
            
9  | 
              
                #![allow(clippy::cast_lossless)]
                 | 
            
10  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
11  | 
              
                #![allow(clippy::cast_lossless)]
                 | 
            
12  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
11  | 
              
                #![allow(clippy::cast_lossless)]
                 | 
            
12  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
14  | 
              
                #![allow(clippy::cast_lossless)]
                 | 
            
15  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
134  | 
              
                #![allow(clippy::needless_pass_by_value)]
                 | 
            
135  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
136  | 
              
                #![allow(clippy::write_with_newline)]
                 | 
            
27  | 
              
                // The claims of this lint are dubious, disable it
                 | 
            
28  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
100  | 
              
                    clippy::shadow_unrelated,
                 | 
            
101  | 
              
                    clippy::trivially_copy_pass_by_ref,
                 | 
            
102  | 
              
                    clippy::unnecessary_wraps,
                 | 
            
31  | 
              
                    clippy::too_many_arguments,
                 | 
            
32  | 
              
                    clippy::trivially_copy_pass_by_ref,
                 | 
            
33  | 
              
                    clippy::used_underscore_binding,
                 | 
            
12  | 
              
                    clippy::should_implement_trait,
                 | 
            
13  | 
              
                    clippy::trivially_copy_pass_by_ref,
                 | 
            
14  | 
              
                    clippy::wildcard_in_or_patterns,
                 | 
            
25  | 
              
                    clippy::too_many_arguments,
                 | 
            
26  | 
              
                    clippy::trivially_copy_pass_by_ref,
                 | 
            
27  | 
              
                    clippy::used_underscore_binding,
                 | 
            
286  | 
              
                    clippy::too_many_lines,
                 | 
            
287  | 
              
                    clippy::trivially_copy_pass_by_ref,
                 | 
            
288  | 
              
                    clippy::unnecessary_unwrap,
                 | 
            
259  | 
              
                    clippy::too_many_arguments,
                 | 
            
260  | 
              
                    clippy::trivially_copy_pass_by_ref
                 | 
            
261  | 
              
                )]
                 | 
            
258  | 
              
                    clippy::too_many_arguments,
                 | 
            
259  | 
              
                    clippy::trivially_copy_pass_by_ref
                 | 
            
260  | 
              
                )]
                 | 
            
3  | 
              
                #![cfg_attr(feature = "cargo-clippy", allow(trivially_copy_pass_by_ref))]
                 | 
            
4  | 
              
                #[cfg(any(feature = "full", feature = "derive"))]
                 | 
            
5  | 
              
                	clippy::semicolon_if_nothing_returned,
                 | 
            
6  | 
              
                	clippy::trivially_copy_pass_by_ref
                 | 
            
7  | 
              
                )]
                 | 
            
1  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
1  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
228  | 
              
                    clippy::too_many_lines,
                 | 
            
229  | 
              
                    clippy::trivially_copy_pass_by_ref,
                 | 
            
230  | 
              
                    clippy::unused_self,
                 | 
            
238  | 
              
                    clippy::too_many_lines,
                 | 
            
239  | 
              
                    clippy::trivially_copy_pass_by_ref,
                 | 
            
240  | 
              
                    clippy::unused_self
                 | 
            
1  | 
              
                #![allow(clippy::blacklisted_name, clippy::redundant_clone, clippy::trivially_copy_pass_by_ref)]
                 | 
            
3  | 
              
                #![allow(clippy::cognitive_complexity)]
                 | 
            
4  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
5  | 
              
                #![allow(clippy::unknown_clippy_lints)]
                 | 
            
3  | 
              
                #![allow(clippy::cognitive_complexity)]
                 | 
            
4  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
5  | 
              
                #![allow(clippy::unknown_clippy_lints)]
                 | 
            
1  | 
              
                #![allow(clippy::eq_op, clippy::trivially_copy_pass_by_ref)]
                 | 
            
1  | 
              
                #![allow(clippy::eq_op, clippy::trivially_copy_pass_by_ref, dead_code)]
                 | 
            
52  | 
              
                    clippy::must_use_candidate,
                 | 
            
53  | 
              
                    clippy::trivially_copy_pass_by_ref,
                 | 
            
54  | 
              
                    clippy::type_complexity
                 | 
            
164  | 
              
                #![allow(unused, dead_code)]
                 | 
            
165  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
25  | 
              
                // less clear and harder to read.
                 | 
            
26  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
27  | 
              
                // exhaustively destructuring ensures future fields are handled
                 | 
            
86  | 
              
                #![allow(
                 | 
            
87  | 
              
                    clippy::trivially_copy_pass_by_ref,
                 | 
            
88  | 
              
                    clippy::float_cmp,
                 | 
            
14  | 
              
                #![allow(clippy::cast_lossless)]
                 | 
            
15  | 
              
                #![allow(clippy::trivially_copy_pass_by_ref)]
                 | 
            
14  | 
              
                #![cfg_attr(feature = "benchmarks", feature(test))]
                 | 
            
15  | 
              
                #![allow(clippy::identity_op, clippy::new_without_default, clippy::trivially_copy_pass_by_ref)]
                 |