Skip to content

Commit

Permalink
fix clippy error
Browse files Browse the repository at this point in the history
Signed-off-by: Keming <[email protected]>
  • Loading branch information
kemingy committed Nov 21, 2024
1 parent bf22c54 commit 419663c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/datatype/memory_pgvector_vector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pub enum PgvectorVectorInput<'a> {
Borrowed(&'a PgvectorVectorHeader),
}

impl<'a> PgvectorVectorInput<'a> {
impl PgvectorVectorInput<'_> {
unsafe fn new(p: NonNull<PgvectorVectorHeader>) -> Self {
let q = unsafe {
NonNull::new(pgrx::pg_sys::pg_detoast_datum(p.cast().as_ptr()).cast()).unwrap()
Expand Down Expand Up @@ -124,7 +124,7 @@ impl Drop for PgvectorVectorOutput {
}
}

impl<'a> FromDatum for PgvectorVectorInput<'a> {
impl FromDatum for PgvectorVectorInput<'_> {
unsafe fn from_polymorphic_datum(datum: Datum, is_null: bool, _typoid: Oid) -> Option<Self> {
if is_null {
None
Expand Down
2 changes: 1 addition & 1 deletion src/vchordrq/algorithm/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ impl<'a, T> Tape<'a, T> {
}
}

impl<'a, T> Tape<'a, T>
impl<T> Tape<'_, T>
where
T: rkyv::Serialize<AllocSerializer<8192>>,
{
Expand Down
2 changes: 1 addition & 1 deletion src/vchordrqfscan/algorithm/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ impl<'a, T> Tape<'a, T> {
}
}

impl<'a, T> Tape<'a, T>
impl<T> Tape<'_, T>
where
T: rkyv::Serialize<AllocSerializer<8192>>,
{
Expand Down

0 comments on commit 419663c

Please sign in to comment.