diff options
author | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | 2024-05-09 23:52:37 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2024-05-09 23:52:37 +0000 |
commit | cd5daaf5aee93e21ddc5aa91885e7138e5d90594 (patch) | |
tree | 10263c83c267cf8fce024fe7befaaa9bf639efe4 | |
parent | 679512103e3dd01db7daa00f006970f2059e2055 (diff) | |
parent | 6a5bd3840211dc2a8f8c7aa9ad79a839c159f14a (diff) | |
download | extras-main.tar.gz |
-rw-r--r-- | profcollectd/libprofcollectd/config.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/profcollectd/libprofcollectd/config.rs b/profcollectd/libprofcollectd/config.rs index 8a6c9e4f..cbc5b7cd 100644 --- a/profcollectd/libprofcollectd/config.rs +++ b/profcollectd/libprofcollectd/config.rs @@ -82,9 +82,9 @@ impl Config { } } -impl ToString for Config { - fn to_string(&self) -> String { - serde_json::to_string(self).expect("Failed to deserialise configuration.") +impl std::fmt::Display for Config { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + write!(f, "{}", serde_json::to_string(self).expect("Failed to deserialise configuration.")) } } |