MCPcopy Create free account
hub / github.com/actix/examples / fmt

Method fmt

json/json-error/src/main.rs:15–17  ·  view source on GitHub ↗
(&self, f: &mut fmt::Formatter)

Source from the content-addressed store, hash-verified

13
14impl fmt::Display for Error {
15 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
16 write!(f, "{}", serde_json::to_string_pretty(self).unwrap())
17 }
18}
19
20impl ResponseError for Error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected