Skip to content

Commit 3167c73

Browse files
committed
fix: switch imports to lib
Prevents annoying clippy/compiler spam
1 parent d6fd0a8 commit 3167c73

File tree

4 files changed

+6
-13
lines changed

4 files changed

+6
-13
lines changed

src/commands/bundle.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
use anyhow::Result;
22
use std::{fs, path::Path};
33

4-
use crate::{BundleCommands, build::bundle::build_bundle, utils::resolve_repo};
4+
use crate::BundleCommands;
5+
use flintpkg::{build::bundle::build_bundle, utils::resolve_repo};
56

67
pub fn bundle_commands(base_path: &Path, command: BundleCommands) -> Result<()> {
78
match command {

src/commands/repo.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ use comfy_table::Table;
33
use flintpkg::chunks::utils::clean_unused;
44
use std::{fs, os::unix::fs::symlink, path::Path};
55

6-
use crate::{
7-
RepoCommands,
6+
use crate::RepoCommands;
7+
use flintpkg::{
88
crypto::signing::sign,
99
repo::{self, read_manifest, remove_package, update_manifest},
1010
utils::resolve_repo,
@@ -63,7 +63,7 @@ pub async fn repo_commands(
6363
remote_url,
6464
} => {
6565
use crate::log::{added_repo, cannot_update_repo, update_redirect};
66-
use crate::repo::network::add_repository;
66+
use flintpkg::repo::network::add_repository;
6767

6868
let repo_path = &base_path.join(&repo_name);
6969
fs::create_dir_all(repo_path)?;

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ pub mod build;
22
pub mod bundle;
33
pub mod chunks;
44
pub mod config;
5-
mod crypto;
5+
pub mod crypto;
66
pub mod repo;
77
pub mod run;
88
pub mod utils;

src/main.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
1-
mod build;
2-
mod bundle;
3-
mod chunks;
41
mod commands;
5-
mod config;
6-
mod crypto;
72
mod log;
8-
mod repo;
9-
mod run;
10-
mod utils;
113

124
use anyhow::Result;
135
use clap::{Parser, Subcommand};

0 commit comments

Comments
 (0)