Skip to content

Commit

Permalink
split up Stream infra
Browse files Browse the repository at this point in the history
  • Loading branch information
KodrAus committed Dec 18, 2023
1 parent 801b218 commit 325eac1
Show file tree
Hide file tree
Showing 6 changed files with 1,319 additions and 1,241 deletions.
1 change: 0 additions & 1 deletion buffer/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ impl Error {
}

pub(crate) fn invalid_value(reason: &'static str) -> Self {
panic!("{}", reason);
Error(ErrorKind::InvalidValue { reason })
}

Expand Down
7 changes: 6 additions & 1 deletion buffer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,14 @@ Rather than conditionally compile these methods, this library stubs
out functionality when an allocator isn't available.
*/

//#![cfg_attr(not(test), no_std)]
#![cfg_attr(not(test), no_std)]
#![deny(missing_docs)]

/**
A generic streaming result.
*/
pub type Result<T = (), E = Error> = sval::Result<T, E>;

mod error;

#[cfg(feature = "std")]
Expand Down
Loading

0 comments on commit 325eac1

Please sign in to comment.