xmr: revert to_string()

This commit is contained in:
hinto.janai 2023-12-26 12:40:24 -05:00
parent de070a3986
commit 430cf7d805
No known key found for this signature in database
GPG key ID: D47CE05FA175A499

View file

@ -65,6 +65,14 @@ impl AtomicUnit {
self.0
}
#[allow(clippy::inherent_to_string_shadow_display)]
// This is terrible but it formats it in a different way
// than `Display`, but for backwards compat, changing it
// requires touching other code, so...
pub fn to_string(self) -> String {
self.0.to_string()
}
pub fn sum_vec(vec: &Vec<Self>) -> Self {
let mut sum = 0;
for int in vec {