We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5affa6 commit e09ac80Copy full SHA for e09ac80
src/config/config.rs
@@ -249,7 +249,7 @@ impl<'a> ConfigBuilder<'a, ()> {
249
/// If you want to use a decoder callback,
250
/// use the `with_callback` function
251
/// returns `Invalid` when buf is empty
252
- pub fn new(buf: &'a mut [u8]) -> Result<ConfigBuilder<()>, PtError> {
+ pub fn new(buf: &'a mut [u8]) -> Result<ConfigBuilder<'a, ()>, PtError> {
253
if buf.len() < 1 { return Err(
254
PtError::new(PtErrorCode::Invalid, "buffer cant be empty!")
255
)}
0 commit comments