From b0a36580fb785c29988bf25a39b3fa700046fb01 Mon Sep 17 00:00:00 2001 From: Lzu Tao Date: Wed, 7 Oct 2020 11:58:38 +0000 Subject: [PATCH] shorter --- compiler/rustc_target/src/abi/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_target/src/abi/mod.rs b/compiler/rustc_target/src/abi/mod.rs index 5aeb6e544923e..975f47e535c4f 100644 --- a/compiler/rustc_target/src/abi/mod.rs +++ b/compiler/rustc_target/src/abi/mod.rs @@ -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() } }