Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: include redundant_pub_crate #753

Merged
merged 1 commit into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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