Skip to content

Commit

Permalink
style: include redundant_pub_crate (TheAlgorithms#753)
Browse files Browse the repository at this point in the history
  • Loading branch information
vil02 committed Jun 17, 2024
1 parent 8b6ffe3 commit bf9d9c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ missing_const_for_fn = { level = "allow", priority = 1 }
nonstandard_macro_braces = { level = "allow", priority = 1 }
option_if_let_else = { level = "allow", priority = 1 }
redundant_clone = { level = "allow", priority = 1 }
redundant_pub_crate = { level = "allow", priority = 1 }
suboptimal_flops = { level = "allow", priority = 1 }
suspicious_operation_groupings = { level = "allow", priority = 1 }
use_self = { level = "allow", priority = 1 }
Expand Down
6 changes: 3 additions & 3 deletions src/general/permutations/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ mod tests {
use quickcheck::{Arbitrary, Gen};
use std::collections::HashMap;

pub(crate) fn assert_permutations(original: &[i32], permutations: &[Vec<i32>]) {
pub fn assert_permutations(original: &[i32], permutations: &[Vec<i32>]) {
if original.is_empty() {
assert_eq!(vec![vec![] as Vec<i32>], permutations);
return;
Expand All @@ -23,7 +23,7 @@ mod tests {
}
}

pub(crate) fn assert_valid_permutation(original: &[i32], permuted: &[i32]) {
pub fn assert_valid_permutation(original: &[i32], permuted: &[i32]) {
assert_eq!(original.len(), permuted.len());
let mut indices = HashMap::with_capacity(original.len());
for value in original {
Expand Down Expand Up @@ -78,7 +78,7 @@ mod tests {
/// A Data Structure for testing permutations
/// Holds a Vec<i32> with just a few items, so that it's not too long to compute permutations
#[derive(Debug, Clone)]
pub(crate) struct NotTooBigVec {
pub struct NotTooBigVec {
pub(crate) inner: Vec<i32>, // opaque type alias so that we can implement Arbitrary
}

Expand Down

0 comments on commit bf9d9c1

Please sign in to comment.