Skip to content

Commit 546559f

Browse files
committed
Mark static method string as 'static
since it is
1 parent b1fc7d8 commit 546559f

File tree

1 file changed

+1
-1
lines changed
  • lightning-liquidity/src/lsps0

1 file changed

+1
-1
lines changed

lightning-liquidity/src/lsps0/msgs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pub enum LSPS0Request {
3838

3939
impl LSPS0Request {
4040
/// Returns the method name associated with the given request variant.
41-
pub fn method(&self) -> &str {
41+
pub fn method(&self) -> &'static str {
4242
match self {
4343
LSPS0Request::ListProtocols(_) => LSPS0_LISTPROTOCOLS_METHOD_NAME,
4444
}

0 commit comments

Comments
 (0)