Skip to content

Commit

Permalink
Remvoed EntityResolver's unnessisary lifetime
Browse files Browse the repository at this point in the history
  • Loading branch information
pigeonhands committed Mar 29, 2023
1 parent 17d2c1a commit 6367dcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use crate::events::BytesText;

/// Used to resolve unknown entities while parsing
pub trait EntityResolver<'entity_out> {
pub trait EntityResolver {
/// Called on contents of [`Event::DocType`] to capture declared entities.
/// Can be called multiple times, for each parsed `<!DOCTYPE >` declaration.
fn capture(&mut self, doctype: BytesText);
Expand All @@ -20,7 +20,7 @@ pub trait EntityResolver<'entity_out> {
#[derive(Default, Copy, Clone)]
pub struct DefaultEntityResolver;

impl<'entity_out> EntityResolver<'entity_out> for DefaultEntityResolver{
impl<'entity_out> EntityResolver for DefaultEntityResolver{
fn resolve<'entity>(&'entity self, _: &str) -> Option<&'entity str> {
None
}
Expand Down

0 comments on commit 6367dcc

Please sign in to comment.