We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b2e9f7 commit e5eb538Copy full SHA for e5eb538
src/librustc/session/config.rs
@@ -2157,7 +2157,7 @@ pub fn build_session_options_and_crate_config(
2157
let mut name_parts = name.splitn(2, ':');
2158
let name = name_parts.next().unwrap();
2159
let new_name = name_parts.next();
2160
- (name.to_string(), new_name.map(|n| n.to_string()), kind)
+ (name.to_owned(), new_name.map(|n| n.to_owned()), kind)
2161
})
2162
.collect();
2163
@@ -2223,7 +2223,7 @@ pub fn build_session_options_and_crate_config(
2223
};
2224
2225
externs
2226
- .entry(name.to_string())
+ .entry(name.to_owned())
2227
.or_default()
2228
.insert(location);
2229
}
0 commit comments