From 79abc10257d5b1c2ccc14406600e3391df45617a Mon Sep 17 00:00:00 2001 From: Joel Natividad <1980690+jqnatividad@users.noreply.github.com> Date: Wed, 1 Nov 2023 08:59:48 -0400 Subject: [PATCH] clippy:redundant_pub_crate warning: pub(crate) function inside private module --> src/cmd/rename.rs:93:1 | 93 | pub(crate) fn rename_headers_all_generic(num_of_cols: usize) -> String { | ----------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | | | help: consider using: `pub` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_pub_crate = note: `-W clippy::redundant-pub-crate` implied by `-W clippy::nursery` = help: to override `-W clippy::nursery` add `#[allow(clippy::redundant_pub_crate)]` --- src/cmd/rename.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/rename.rs b/src/cmd/rename.rs index b4871ed80..edf29e829 100644 --- a/src/cmd/rename.rs +++ b/src/cmd/rename.rs @@ -90,7 +90,7 @@ pub fn run(argv: &[&str]) -> CliResult<()> { Ok(()) } -pub(crate) fn rename_headers_all_generic(num_of_cols: usize) -> String { +pub fn rename_headers_all_generic(num_of_cols: usize) -> String { let mut generic_headers = String::new(); for i in 1..=num_of_cols { generic_headers.push_str(&format!("_col_{i},"));