compiler: Move impl of ToJson for abi::Endian

This commit is contained in:
Jubilee Young
2024-10-08 19:07:43 -07:00
parent 1bc403daad
commit 559de74562
2 changed files with 6 additions and 8 deletions

View File

@@ -134,3 +134,9 @@ impl ToJson for TargetMetadata {
})
}
}
impl ToJson for rustc_abi::Endian {
fn to_json(&self) -> Json {
self.as_str().to_json()
}
}