Skip to content

Commit

Permalink
fix(fmt): cargo fmt --all
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Sep 30, 2023
1 parent d4f3e84 commit 6fd8b27
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions crates/node-maintainer/src/maintainer.rs
Expand Up @@ -348,10 +348,12 @@ impl NodeMaintainerOptions {
on_resolution_added: self.on_resolution_added,
on_resolve_progress: self.on_resolve_progress,
};
let node = resolver
.graph
.inner
.add_node(Node::new(UniCase::new("".to_string()), root_pkg, root, true)?);
let node = resolver.graph.inner.add_node(Node::new(
UniCase::new("".to_string()),
root_pkg,
root,
true,
)?);
resolver.graph[node].root = node;
let (graph, _actual_tree) = resolver.run_resolver(lockfile).await?;
#[cfg(not(target_arch = "wasm32"))]
Expand Down Expand Up @@ -404,10 +406,12 @@ impl NodeMaintainerOptions {
on_resolve_progress: self.on_resolve_progress,
};
let corgi = root_pkg.corgi_metadata().await?.manifest;
let node = resolver
.graph
.inner
.add_node(Node::new(UniCase::new("".to_string()), root_pkg, corgi, true)?);
let node = resolver.graph.inner.add_node(Node::new(
UniCase::new("".to_string()),
root_pkg,
corgi,
true,
)?);
resolver.graph[node].root = node;
let (graph, _actual_tree) = resolver.run_resolver(lockfile).await?;
#[cfg(not(target_arch = "wasm32"))]
Expand Down

0 comments on commit 6fd8b27

Please sign in to comment.