File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ impl Profiler {
2525 // The first thing in the file must be the top-level file header.
2626 write_file_header ( & mut file, FILE_MAGIC_TOP_LEVEL ) ?;
2727
28- let sink_builder = SerializationSinkBuilder :: from_file ( file) ?;
28+ let sink_builder = SerializationSinkBuilder :: new_from_file ( file) ?;
2929 let event_sink = Arc :: new ( sink_builder. new_sink ( PageTag :: Events ) ) ;
3030
3131 // The first thing in every stream we generate must be the stream header.
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ pub struct SerializationSink {
8888pub struct SerializationSinkBuilder ( SharedState ) ;
8989
9090impl SerializationSinkBuilder {
91- pub fn from_file ( file : fs:: File ) -> Result < Self , Box < dyn Error + Send + Sync > > {
91+ pub fn new_from_file ( file : fs:: File ) -> Result < Self , Box < dyn Error + Send + Sync > > {
9292 Ok ( Self ( SharedState ( Arc :: new ( Mutex :: new (
9393 BackingStorage :: File ( file) ,
9494 ) ) ) ) )
@@ -399,7 +399,7 @@ impl SerializationSink {
399399 curr_addr
400400 }
401401
402- pub fn as_std_write < ' a > ( & ' a self ) -> StdWriteAdapter < ' a > {
402+ pub fn as_std_write < ' a > ( & ' a self ) -> impl Write + ' a {
403403 StdWriteAdapter ( self )
404404 }
405405}
You can’t perform that action at this time.
0 commit comments