Skip to content

Commit

Permalink
clippy: derive Default
Browse files Browse the repository at this point in the history
  • Loading branch information
djmitche committed Dec 25, 2023
1 parent 2eccd07 commit 29e9645
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions taskchampion/lib/src/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,19 +117,17 @@ impl TCString {
}

#[derive(PartialEq, Eq, Debug)]
#[derive(Default)]
pub enum RustString<'a> {
#[default]
Null,
CString(CString),
CStr(&'a CStr),
String(String),
Bytes(Vec<u8>),
}

impl<'a> Default for RustString<'a> {
fn default() -> Self {
RustString::Null
}
}


impl PassByValue for TCString {
type RustType = RustString<'static>;
Expand Down

0 comments on commit 29e9645

Please sign in to comment.