Skip to content

Commit

Permalink
Use to_owned consistently
Browse files Browse the repository at this point in the history
Summary: String::from takes a wide range of types. `to_owned` is more specific, and what we use nearly all the time, so make it a little more consistent.

Reviewed By: aniketmathur

Differential Revision: D54483201

fbshipit-source-id: f20409d7977d26dca3491ca6d184fe6729d22015
  • Loading branch information
ndmitchell authored and facebook-github-bot committed Mar 4, 2024
1 parent 834482c commit f4df7b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions btd/src/rerun.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ mod tests {
}),
TargetsEntry::Error(BuckError {
package: Package::new("fbcode//broken"),
error: String::from("broken"),
error: "broken".to_owned(),
}),
];
let base = Targets::new(target_entries);
Expand Down Expand Up @@ -331,7 +331,7 @@ mod tests {
}),
TargetsEntry::Error(BuckError {
package: Package::new("fbcode//broken"),
error: String::from("broken"),
error: "broken".to_owned(),
}),
];
let base = Targets::new(target_entries);
Expand Down

0 comments on commit f4df7b3

Please sign in to comment.