Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
arch-rebuild-order
Commits
8025069c
Verified
Commit
8025069c
authored
Aug 02, 2021
by
Jelle van der Waa
🚧
Browse files
Fix clippy warning about useless borrows
parent
c7167042
Pipeline
#10269
failed with stages
in 42 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/lib.rs
View file @
8025069c
...
...
@@ -95,7 +95,7 @@ pub fn run(
let
mut
provides_map
=
HashMap
::
new
();
for
pkg
in
&
pkgnames
{
let
repopkg
=
find_package_anywhere
(
&
pkg
,
&
pacman
)
?
;
let
repopkg
=
find_package_anywhere
(
pkg
,
&
pacman
)
?
;
for
provide
in
repopkg
.provides
()
{
provides
.push
(
provide
.name
());
provides_map
.insert
(
provide
.name
(),
repopkg
.name
());
...
...
@@ -136,7 +136,7 @@ pub fn run(
for
rev_dep
in
rev_deps_for_pkg_vec
{
let
depnode
=
*
cache_node
.entry
(
&
rev_dep
.as_str
())
.entry
(
rev_dep
.as_str
())
.or_insert_with
(||
graph
.add_node
(
rev_dep
));
if
!
graph
.contains_edge
(
root
,
depnode
)
{
graph
.add_edge
(
root
,
depnode
,
1
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment