Skip to content

Commit

Permalink
clippy:redundant_pub_crate
Browse files Browse the repository at this point in the history
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)]`
  • Loading branch information
jqnatividad committed Nov 1, 2023
1 parent 9dabcd8 commit 79abc10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/rename.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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},"));
Expand Down

0 comments on commit 79abc10

Please sign in to comment.