Skip to content

Commit

Permalink
ManagedBufferBuilder fix
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-marinica committed Apr 5, 2024
1 parent 7dcde79 commit 38e452d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion framework/base/src/formatter/formatter_traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub trait FormatByteReceiver {
fn append_managed_buffer_binary(&mut self, item: &ManagedBuffer<Self::Api>);
}

pub trait FormatBuffer {
pub trait FormatBuffer: Default {
fn append_ascii(&mut self, ascii: &[u8]);

fn append_display<T: SCDisplay>(&mut self, item: &T);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,9 @@ where
}
}

impl<M, Impl> FormatBuffer for ManagedBufferBuilder<M, Impl>
impl<M> FormatBuffer for ManagedBufferBuilder<M, ManagedBufferImplDefault<M>>
where
M: ManagedTypeApi,
Impl: ManagedBufferBuilderImpl<M>,
{
fn append_ascii(&mut self, ascii: &[u8]) {
self.append_bytes(ascii)
Expand Down

0 comments on commit 38e452d

Please sign in to comment.