Skip to content

Commit bf9d9c1

Browse files
authored
style: include redundant_pub_crate (#753)
1 parent 8b6ffe3 commit bf9d9c1

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ missing_const_for_fn = { level = "allow", priority = 1 }
159159
nonstandard_macro_braces = { level = "allow", priority = 1 }
160160
option_if_let_else = { level = "allow", priority = 1 }
161161
redundant_clone = { level = "allow", priority = 1 }
162-
redundant_pub_crate = { level = "allow", priority = 1 }
163162
suboptimal_flops = { level = "allow", priority = 1 }
164163
suspicious_operation_groupings = { level = "allow", priority = 1 }
165164
use_self = { level = "allow", priority = 1 }

src/general/permutations/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ mod tests {
1111
use quickcheck::{Arbitrary, Gen};
1212
use std::collections::HashMap;
1313

14-
pub(crate) fn assert_permutations(original: &[i32], permutations: &[Vec<i32>]) {
14+
pub fn assert_permutations(original: &[i32], permutations: &[Vec<i32>]) {
1515
if original.is_empty() {
1616
assert_eq!(vec![vec![] as Vec<i32>], permutations);
1717
return;
@@ -23,7 +23,7 @@ mod tests {
2323
}
2424
}
2525

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

0 commit comments

Comments
 (0)