Skip to content

Commit 971bc9f

Browse files
committed
Fix clippy warnings
Signed-off-by: Amanieu d'Antras <[email protected]>
1 parent 210c4eb commit 971bc9f

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

jemalloc-ctl/src/keys.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ use crate::{fmt, ops, raw};
3131

3232
/// A `Name` in the _MALLCTL NAMESPACE_.
3333
#[repr(transparent)]
34-
#[derive(PartialEq)]
34+
#[derive(PartialEq, Eq)]
3535
pub struct Name([u8]);
3636

3737
/// Converts a null-terminated byte-string into a [`Name`].
@@ -132,12 +132,12 @@ impl fmt::Display for Name {
132132

133133
/// Management Information Base of a non-string value.
134134
#[repr(transparent)]
135-
#[derive(Copy, Clone, PartialEq, Debug, Default)]
135+
#[derive(Copy, Clone, PartialEq, Eq, Debug, Default)]
136136
pub struct Mib<T: MibArg>(T);
137137

138138
/// Management Information Base of a string value.
139139
#[repr(transparent)]
140-
#[derive(Copy, Clone, PartialEq, Debug, Default)]
140+
#[derive(Copy, Clone, PartialEq, Eq, Debug, Default)]
141141
pub struct MibStr<T: MibArg>(T);
142142

143143
impl<T: MibArg> AsRef<[usize]> for Mib<T> {

jemalloc-sys/build.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,9 @@ fn main() {
188188
}
189189

190190
if let Ok(malloc_conf_opts) = read_and_watch_env("JEMALLOC_SYS_WITH_MALLOC_CONF") {
191-
malloc_conf += &format!(
192-
"{}{}",
191+
malloc_conf = format!(
192+
"{}{}{}",
193+
malloc_conf,
193194
if malloc_conf.is_empty() { "" } else { "," },
194195
malloc_conf_opts
195196
);

0 commit comments

Comments
 (0)