File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -487,7 +487,7 @@ impl Builder {
487487 amt
488488 } ) ;
489489
490- let my_thread = name. map_or_else ( Thread :: new_unnamed, |name| Thread :: new ( name . into ( ) ) ) ;
490+ let my_thread = name. map_or_else ( Thread :: new_unnamed, Thread :: new) ;
491491 let their_thread = my_thread. clone ( ) ;
492492
493493 let my_packet: Arc < Packet < ' scope , T > > = Arc :: new ( Packet {
@@ -1336,8 +1336,8 @@ pub struct Thread {
13361336
13371337impl Thread {
13381338 /// Used only internally to construct a thread object without spawning.
1339- pub ( crate ) fn new ( name : ThreadNameString ) -> Thread {
1340- Self :: new_inner ( ThreadName :: Other ( name) )
1339+ pub ( crate ) fn new ( name : String ) -> Thread {
1340+ Self :: new_inner ( ThreadName :: Other ( name. into ( ) ) )
13411341 }
13421342
13431343 pub ( crate ) fn new_unnamed ( ) -> Thread {
You can’t perform that action at this time.
0 commit comments