Skip to content

Commit

Permalink
minor tweak and comment
Browse files Browse the repository at this point in the history
  • Loading branch information
djellemah committed May 2, 2024
1 parent e97f4ba commit f39a39f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/rapid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ pub mod ffi {
fn Take(self : &mut RustStream) -> c_char;
// position in stream
fn Tell(self : &RustStream) -> usize;

// These can remain unimplemented for read-only streams
unsafe fn PutBegin(self : &mut RustStream) -> c_char;
fn Put(self : &mut RustStream, one : c_char);
fn Flush(self : &mut RustStream);
Expand Down Expand Up @@ -231,7 +233,7 @@ struct ChannelStreamer(rtrb::Consumer<JsonEvent<String>>, std::thread::Thread);

use crate::parser::JsonEvents;

impl<'l> JsonEvents<'_,String> for ChannelStreamer {
impl JsonEvents<'_,String> for ChannelStreamer {
#[inline]
fn next_event<'a>(&'a mut self) -> std::result::Result<JsonEvent<std::string::String>, Box<(dyn std::error::Error + 'static)>> {
while !self.0.is_abandoned() {
Expand Down

0 comments on commit f39a39f

Please sign in to comment.