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

Method fmt

plugins/lsps-plugin/src/proto/lsps2.rs:31–38  ·  view source on GitHub ↗
(&self, f: &mut std::fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

29
30impl core::fmt::Display for Error {
31 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
32 let err_str = match self {
33 Error::InvalidOpeningFeeParams => "Invalid opening fee params",
34 Error::PaymentSizeTooSmall => "Payment size too small",
35 Error::PaymentSizeTooLarge => "Payment size too large",
36 };
37 write!(f, "{}", &err_str)
38 }
39}
40
41impl From<Error> for RpcError {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected