MCPcopy Create free account
hub / github.com/ElementsProject/lightning / fmt

Method fmt

plugins/lsps-plugin/src/core/features.rs:75–84  ·  view source on GitHub ↗
(&self, f: &mut fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

73
74impl fmt::Display for UnwrapError {
75 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
76 match self {
77 UnwrapError::InvalidPublicKey(e) => {
78 write!(f, "Invalid public key: {}", e)
79 }
80 UnwrapError::SerdeFailure(e) => {
81 write!(f, "Failed to serialize or deserialize json value: {}", e)
82 }
83 }
84 }
85}
86
87impl std::error::Error for UnwrapError {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected