Skip to content

Commit 0e8aa79

Browse files
committed
fix clippy again
1 parent cdd7ae8 commit 0e8aa79

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/raw/serde/seeded_visitor.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,10 @@ impl<'a, 'de> SeededVisitor<'a, 'de> {
119119

120120
/// Appends a cstring to the buffer. Returns an error if the given string contains a null byte.
121121
fn append_cstring(&mut self, key: &str) -> Result<(), String> {
122-
Ok(crate::raw::CStr::from_str(key)
122+
crate::raw::CStr::from_str(key)
123123
.map_err(|e| e.to_string())?
124-
.append_to(self.buffer.get_owned_buffer()))
124+
.append_to(self.buffer.get_owned_buffer());
125+
Ok(())
125126
}
126127

127128
/// Appends a string and its length to the buffer.

0 commit comments

Comments
 (0)