Skip to content

Commit

Permalink
apply clippy suggestions
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
boozook and github-actions[bot] authored Jun 4, 2024
1 parent 575ee8c commit 9f1ce14
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cargo/src/utils/cargo/meta_deps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pub struct Node<'cfg> {
}

impl<'t> RootNode<'t> {
pub fn package_id(&self) -> &'t PackageId { &self.node.package_id() }
pub fn package_id(&self) -> &'t PackageId { self.node.package_id() }

pub fn node(&self) -> &Node<'t> { &self.node }

Expand Down Expand Up @@ -207,7 +207,7 @@ impl<'t> MetaDeps<'t> {
root.node.unit.target.name
);

deps.insert(0, root.node.clone());
deps.insert(0, root.node);
}


Expand Down Expand Up @@ -245,8 +245,8 @@ impl<'t> MetaDeps<'t> {
.ok_or_else(|| anyhow::anyhow!("Root not found for {id}::{tname}"))
}

pub fn units(&self) -> &'t UnitGraph { &*self.units }
pub fn meta(&self) -> &'t CargoMetadataPd { &*self.meta }
pub fn units(&self) -> &'t UnitGraph { self.units }
pub fn meta(&self) -> &'t CargoMetadataPd { self.meta }


pub fn deps_allowed_for(&self, root: PackageId) -> bool {
Expand Down

0 comments on commit 9f1ce14

Please sign in to comment.