Skip to content

Commit e09ac80

Browse files
committed
fix cargo check errors
elided lifetime has a name
1 parent d5affa6 commit e09ac80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/config/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ impl<'a> ConfigBuilder<'a, ()> {
249249
/// If you want to use a decoder callback,
250250
/// use the `with_callback` function
251251
/// returns `Invalid` when buf is empty
252-
pub fn new(buf: &'a mut [u8]) -> Result<ConfigBuilder<()>, PtError> {
252+
pub fn new(buf: &'a mut [u8]) -> Result<ConfigBuilder<'a, ()>, PtError> {
253253
if buf.len() < 1 { return Err(
254254
PtError::new(PtErrorCode::Invalid, "buffer cant be empty!")
255255
)}

0 commit comments

Comments
 (0)