Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
saulecabrera committed Jan 8, 2025
1 parent 12356a0 commit fc3ba37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion ext/src/ruby_api/component/linker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,6 @@ impl Linker {
free_immediately,
unsafe_generics
)]

pub struct LinkerInstance<'a> {
inner: RefCell<MaybeInstanceImpl<'a>>,
refs: RefCell<Vec<Value>>,
Expand Down
4 changes: 2 additions & 2 deletions ext/src/ruby_api/store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ pub enum StoreContextValue<'a> {
Caller(Opaque<Obj<Caller<'a>>>),
}

impl<'a> From<Obj<Store>> for StoreContextValue<'a> {
impl From<Obj<Store>> for StoreContextValue<'_> {
fn from(store: Obj<Store>) -> Self {
StoreContextValue::Store(store.into())
}
Expand All @@ -274,7 +274,7 @@ impl<'a> From<Obj<Caller<'a>>> for StoreContextValue<'a> {
}
}

impl<'a> StoreContextValue<'a> {
impl StoreContextValue<'_> {
pub fn mark(&self, marker: &Marker) {
match self {
Self::Store(store) => marker.mark(*store),
Expand Down

0 comments on commit fc3ba37

Please sign in to comment.