Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
Signed-off-by: Bugen Zhao <[email protected]>
  • Loading branch information
BugenZhao committed Oct 24, 2023
1 parent 3809e76 commit e53f3a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/frontend/src/optimizer/plan_node/logical_share.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ impl LogicalShare {
LogicalShare::new(input).into()
}

pub(super) fn pretty_fields<'a>(base: impl GenericPlanRef, name: &'a str) -> XmlNode<'a> {
pub(super) fn pretty_fields(base: impl GenericPlanRef, name: &str) -> XmlNode<'_> {
childless_record(name, vec![("id", Pretty::debug(&base.id().0))])
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/frontend/src/optimizer/plan_node/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ impl_downcast!(PlanNode);

// Using a new type wrapper allows direct function implementation on `PlanRef`,
// and we currently need a manual implementation of `PartialEq` for `PlanRef`.
#[allow(clippy::derived_hash_with_manual_eq)]
#[derive(Clone, Debug, Eq, Hash)]
pub struct PlanRef(Rc<dyn PlanNode>);

Expand Down Expand Up @@ -528,7 +529,7 @@ impl GenericPlanRef for PlanRef {
self.plan_base().schema()
}

fn stream_key<'a>(&'a self) -> Option<&'a [usize]> {
fn stream_key(&self) -> Option<&[usize]> {
self.plan_base().stream_key()
}

Expand Down

0 comments on commit e53f3a5

Please sign in to comment.