You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/config.rs
+2-5Lines changed: 2 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -259,12 +259,9 @@ impl Config {
259
259
for mentioned_target in keys {
260
260
let mentioned_target_norm = mentioned_target
261
261
.to_string()
262
-
.replace(|c| c == '-' || c == '_',"")
263
-
.to_lowercase();
264
-
let target_norm = target
265
-
.to_string()
266
-
.replace(|c| c == '-' || c == '_',"")
262
+
.replace(['-','_'],"")
267
263
.to_lowercase();
264
+
let target_norm = target.to_string().replace(['-','_'],"").to_lowercase();
268
265
if mentioned_target != target && mentioned_target_norm == target_norm {
269
266
msg_info.warn(format_args!("a target named \"{mentioned_target}\" is mentioned in the Cross configuration, but the current specified target is \"{target}\"."))?;
270
267
msg_info.status(" > Is the target misspelled in the Cross configuration?")?;
0 commit comments