about summary refs log tree commit diff
path: root/library/std/src/thread/mod.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2025-01-09 09:05:10 +0100
committerGitHub <noreply@github.com>2025-01-09 09:05:10 +0100
commita1cadeab68e5eee105d9b5819bbb83264ae073fc (patch)
treeebe27c31562af958ca9a3a8a580203c1beb373b1 /library/std/src/thread/mod.rs
parentb593085a9ed610d041f6b7732026713b36b0da26 (diff)
parenteb917ea24deeeb92ab76fcb215aac4c7a567644d (diff)
downloadrust-a1cadeab68e5eee105d9b5819bbb83264ae073fc.tar.gz
rust-a1cadeab68e5eee105d9b5819bbb83264ae073fc.zip
Rollup merge of #135269 - estebank:unneeded-into, r=compiler-errors
Remove some unnecessary `.into()` calls
Diffstat (limited to 'library/std/src/thread/mod.rs')
-rw-r--r--library/std/src/thread/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/thread/mod.rs b/library/std/src/thread/mod.rs
index 85ee369ca2b..b6ee00a253a 100644
--- a/library/std/src/thread/mod.rs
+++ b/library/std/src/thread/mod.rs
@@ -502,7 +502,7 @@ impl Builder {
 
         let id = ThreadId::new();
         let my_thread = match name {
-            Some(name) => Thread::new(id, name.into()),
+            Some(name) => Thread::new(id, name),
             None => Thread::new_unnamed(id),
         };