fix clippy lints

This commit is contained in:
Dustin J. Mitchell 2022-10-02 19:01:48 +00:00
parent 9e6be07e24
commit 1b55e5b265
15 changed files with 40 additions and 41 deletions

View file

@ -104,7 +104,7 @@ impl TCString {
}
}
#[derive(PartialEq, Debug)]
#[derive(PartialEq, Eq, Debug)]
pub enum RustString<'a> {
Null,
CString(CString),
@ -600,7 +600,7 @@ mod test {
fn make_cstr() -> RustString<'static> {
let cstr = CStr::from_bytes_with_nul(b"a string\0").unwrap();
RustString::CStr(&cstr)
RustString::CStr(cstr)
}
fn make_string() -> RustString<'static> {