Skip to content

Commit

Permalink
Fix warning: elided lifetime has a name
Browse files Browse the repository at this point in the history
   --> src\writer.rs:146:73
    |
146 |     pub fn create_element<'a, N>(&'a mut self, name: N) -> ElementWriter<W>
    |                           -- lifetime `'a` declared here                ^ this elided lifetime gets resolved as `'a`
    |
    = note: `#[warn(elided_named_lifetimes)]` on by default
  • Loading branch information
Mingun committed Sep 20, 2024
1 parent 51d9e23 commit d95d9ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ impl<W> Writer<W> {
/// # }
/// ```
#[must_use]
pub fn create_element<'a, N>(&'a mut self, name: N) -> ElementWriter<W>
pub fn create_element<'a, N>(&'a mut self, name: N) -> ElementWriter<'a, W>
where
N: Into<Cow<'a, str>>,
{
Expand Down

0 comments on commit d95d9ee

Please sign in to comment.