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 {
25
25
// The first thing in the file must be the top-level file header.
26
26
write_file_header ( & mut file, FILE_MAGIC_TOP_LEVEL ) ?;
27
27
28
- let sink_builder = SerializationSinkBuilder :: from_file ( file) ?;
28
+ let sink_builder = SerializationSinkBuilder :: new_from_file ( file) ?;
29
29
let event_sink = Arc :: new ( sink_builder. new_sink ( PageTag :: Events ) ) ;
30
30
31
31
// 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 {
88
88
pub struct SerializationSinkBuilder ( SharedState ) ;
89
89
90
90
impl 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 > > {
92
92
Ok ( Self ( SharedState ( Arc :: new ( Mutex :: new (
93
93
BackingStorage :: File ( file) ,
94
94
) ) ) ) )
@@ -399,7 +399,7 @@ impl SerializationSink {
399
399
curr_addr
400
400
}
401
401
402
- pub fn as_std_write < ' a > ( & ' a self ) -> StdWriteAdapter < ' a > {
402
+ pub fn as_std_write < ' a > ( & ' a self ) -> impl Write + ' a {
403
403
StdWriteAdapter ( self )
404
404
}
405
405
}
You can’t perform that action at this time.
0 commit comments