mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
fix clippy lints
This commit is contained in:
parent
9e6be07e24
commit
1b55e5b265
15 changed files with 40 additions and 41 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue