Style change
This commit is contained in:
parent
939ee38304
commit
8e4a9205e9
1 changed files with 3 additions and 3 deletions
|
@ -487,7 +487,7 @@ impl Builder {
|
|||
amt
|
||||
});
|
||||
|
||||
let my_thread = name.map_or_else(Thread::new_unnamed, |name| Thread::new(name.into()));
|
||||
let my_thread = name.map_or_else(Thread::new_unnamed, Thread::new);
|
||||
let their_thread = my_thread.clone();
|
||||
|
||||
let my_packet: Arc<Packet<'scope, T>> = Arc::new(Packet {
|
||||
|
@ -1336,8 +1336,8 @@ pub struct Thread {
|
|||
|
||||
impl Thread {
|
||||
/// Used only internally to construct a thread object without spawning.
|
||||
pub(crate) fn new(name: ThreadNameString) -> Thread {
|
||||
Self::new_inner(ThreadName::Other(name))
|
||||
pub(crate) fn new(name: String) -> Thread {
|
||||
Self::new_inner(ThreadName::Other(name.into()))
|
||||
}
|
||||
|
||||
pub(crate) fn new_unnamed() -> Thread {
|
||||
|
|
Loading…
Add table
Reference in a new issue