intro-to-rust-streams
intro-to-rust-streams copied to clipboard
Now, do_flush is removable
Just watched the stream, perfect.
Since the self in the flush method is &self, now you can change the following line to let _ = self.flush(); in the drop method, and get rid of the external method do_flush.
https://github.com/rylev/intro-to-rust-streams/blob/c2f7334042f62190d82f851036479085ecc0f072/src/main.rs#L48
Thanks! Going to leave this open since I'd like to leave the code in this repo the way it is on the streams.