Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
wsxiaoys committed Nov 23, 2023
1 parent e580bfb commit 0e84f55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions crates/tabby-scheduler/src/dataset/deps/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ mod python;
mod rust;

use std::{collections::HashSet, path::Path};

use tabby_common::DependencyFile;

pub fn collect(path: &Path, file: &mut DependencyFile) {
Expand Down
3 changes: 1 addition & 2 deletions crates/tabby-scheduler/src/dataset/deps/rust.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use std::path::Path;

use anyhow::Result;
use cargo_lock::dependency::graph::EdgeDirection;
use tabby_common::Package;

fn extract_deps<'a, I>(packages: I) -> Vec<Package>
Expand All @@ -26,8 +27,6 @@ pub fn process_cargo(path: &Path) -> Result<Vec<Package>> {

let lockfile = cargo_lock::Lockfile::load(cargo_lock_file)?;

use cargo_lock::dependency::graph::EdgeDirection;

let tree = lockfile.dependency_tree()?;
let graph = tree.graph();

Expand Down

0 comments on commit 0e84f55

Please sign in to comment.