Skip to content

Commit

Permalink
shorter
Browse files Browse the repository at this point in the history
  • Loading branch information
tesuji committed Oct 16, 2020
1 parent 9eb3823 commit b0a3658
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_target/src/abi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ impl FromStr for Endian {

impl ToJson for Endian {
fn to_json(&self) -> Json {
Json::String(self.as_str().to_owned())
self.as_str().to_json()
}
}

Expand Down

0 comments on commit b0a3658

Please sign in to comment.