Skip to content

Commit

Permalink
Make Operation::name() a method rather than an associated function
Browse files Browse the repository at this point in the history
  • Loading branch information
babolivier committed Nov 14, 2024
1 parent fd5a2d7 commit eb33298
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/operations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
<Self as sealed::EnvelopeBodyContents>::name()
}
}
Expand Down

0 comments on commit eb33298

Please sign in to comment.