Skip to content

Commit

Permalink
chore: re-enable clippy::module_inception
Browse files Browse the repository at this point in the history
This patch re-enables `clippy::module_inception`, and addresses
the related issues. This required renaming two modules to use
an underscore, which is probably not the best solution, but makes
minimal changes.
  • Loading branch information
rockstar committed Mar 1, 2024
1 parent b82a277 commit c723083
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 10 deletions.
6 changes: 1 addition & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
#![allow(
clippy::module_inception,
clippy::result_large_err,
clippy::type_complexity
)]
#![allow(clippy::result_large_err, clippy::type_complexity)]
mod kvstore;
mod package_db;
mod prelude;
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/package_db/http/lazy_remote_file.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::prelude::*;

use super::http::{CacheMode, HttpInner};
use super::_http::{CacheMode, HttpInner};
use std::cmp;
use std::collections::BTreeMap;
use std::io::{self, Read, Seek, SeekFrom};
Expand Down
4 changes: 2 additions & 2 deletions src/package_db/http/mod.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
mod http;
mod _http;
pub mod lazy_remote_file;
pub mod ureq_glue;
pub mod user_agent;

pub use self::http::{CacheMode, Http, HttpInner, NotCached};
pub use self::_http::{CacheMode, Http, HttpInner, NotCached};
pub use self::lazy_remote_file::LazyRemoteFile;
4 changes: 2 additions & 2 deletions src/package_db/mod.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
mod _package_db;
mod build_wheel;
mod http;
mod package_db;
mod simple_api;

pub use _package_db::PackageDB;
pub use build_wheel::WheelBuilder;
pub use package_db::PackageDB;
pub use simple_api::ArtifactInfo;

0 comments on commit c723083

Please sign in to comment.