From eb33298641ab5be0dd91bdcd2f03e991f1a3c352 Mon Sep 17 00:00:00 2001 From: Brendan Abolivier Date: Thu, 14 Nov 2024 15:10:32 +0000 Subject: [PATCH] Make Operation::name() a method rather than an associated function --- src/types/operations.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/operations.rs b/src/types/operations.rs index 4570e8d..d462a48 100644 --- a/src/types/operations.rs +++ b/src/types/operations.rs @@ -24,7 +24,7 @@ pub trait Operation: XmlSerialize + sealed::EnvelopeBodyContents + std::fmt::Deb /// /// This is the same as the local part of the name of the XML element used /// to represent this option. - fn name() -> &'static str { + fn name(&self) -> &'static str { ::name() } }