Skip to content

Commit

Permalink
remove useless extendable impl for self
Browse files Browse the repository at this point in the history
  • Loading branch information
glendc committed Dec 9, 2023
1 parent 688fab8 commit ea54ae5
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,6 @@ pub trait Extendable {
fn extensions_mut(&mut self) -> &mut Extensions;
}

impl Extendable for Extensions {
fn extensions(&self) -> &Extensions {
self
}

fn extensions_mut(&mut self) -> &mut Extensions {
self
}
}

impl<T> Extendable for crate::http::Request<T> {
fn extensions(&self) -> &Extensions {
crate::http::Request::extensions(self)
Expand Down

0 comments on commit ea54ae5

Please sign in to comment.