Skip to content

Commit

Permalink
Expose rkyv methods for convenience.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChillFish8 committed Sep 10, 2023
1 parent 43a197f commit a8615b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion datacake-rpc/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ pub use self::net::{
Status,
};
pub use self::request::{Request, RequestContents};
pub use self::rkyv_tooling::{DataView, InvalidView};
pub use self::rkyv_tooling::{to_view_bytes, DataView, InvalidView};
pub use self::server::Server;

pub(crate) fn hash<H: Hash + ?Sized>(v: &H) -> u64 {
Expand Down
2 changes: 1 addition & 1 deletion datacake-rpc/src/rkyv_tooling/view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ where
T::Archived: 'static,
{
/// Creates a new view using a provided buffer.
pub(crate) fn using(data: AlignedVec) -> Result<Self, InvalidView> {
pub fn using(data: AlignedVec) -> Result<Self, InvalidView> {
// SAFETY:
// This is safe as we own the data and keep it apart
// of the view itself.
Expand Down

0 comments on commit a8615b5

Please sign in to comment.