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

Add functions to access single SecretVec items #108

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
27 changes: 14 additions & 13 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@
#![warn(rust_2018_idioms)]
#![warn(rust_2021_compatibility)]
#![warn(unused)]

#![warn(bare_trait_objects)]
#![warn(dead_code)]
#![warn(missing_copy_implementations)]
Expand All @@ -156,18 +155,23 @@
#![warn(unused_results)]
#![warn(unsafe_code)]
#![warn(variant_size_differences)]

#![cfg_attr(feature = "cargo-clippy", warn(clippy::all))]
#![cfg_attr(feature = "cargo-clippy", warn(clippy::pedantic))]
#![cfg_attr(feature = "cargo-clippy", warn(clippy::nursery))]
#![cfg_attr(feature = "cargo-clippy", warn(clippy::clone_on_ref_ptr))]
#![cfg_attr(feature = "cargo-clippy", warn(clippy::decimal_literal_representation))]
#![cfg_attr(
feature = "cargo-clippy",
warn(clippy::decimal_literal_representation)
)]
#![cfg_attr(feature = "cargo-clippy", warn(clippy::else_if_without_else))]
#![cfg_attr(feature = "cargo-clippy", warn(clippy::float_arithmetic))]
#![cfg_attr(feature = "cargo-clippy", warn(clippy::float_cmp_const))]
#![cfg_attr(feature = "cargo-clippy", warn(clippy::indexing_slicing))]
#![cfg_attr(feature = "cargo-clippy", warn(clippy::mem_forget))]
#![cfg_attr(feature = "cargo-clippy", warn(clippy::missing_docs_in_private_items))]
#![cfg_attr(
feature = "cargo-clippy",
warn(clippy::missing_docs_in_private_items)
)]
#![cfg_attr(feature = "cargo-clippy", warn(clippy::multiple_inherent_impl))]
#![cfg_attr(feature = "cargo-clippy", warn(clippy::multiple_inherent_impl))]
#![cfg_attr(feature = "cargo-clippy", warn(clippy::print_stdout))]
Expand All @@ -176,13 +180,10 @@
#![cfg_attr(feature = "cargo-clippy", warn(clippy::shadow_same))]
#![cfg_attr(feature = "cargo-clippy", warn(clippy::unimplemented))]
#![cfg_attr(feature = "cargo-clippy", warn(clippy::use_debug))]

#![cfg_attr(feature = "cargo-clippy", allow(clippy::module_name_repetitions))]
#![cfg_attr(feature = "cargo-clippy", allow(clippy::must_use_candidate))]

// disabled due to https://github.com/rust-lang/rust-clippy/issues/5369
#![cfg_attr(feature = "cargo-clippy", allow(clippy::redundant_pub_crate))]

// disabled due to https://github.com/rust-lang/rust/issues/69952
#![cfg_attr(feature = "cargo-clippy", allow(clippy::wildcard_imports))]

Expand Down Expand Up @@ -239,7 +240,7 @@ mod assert {
/// is performed at least once (and therefore the condition was
/// tested).
macro_rules! tested {
($cond:expr) => ()
($cond:expr) => {};
}
}

Expand All @@ -249,7 +250,7 @@ mod assert {
mod assert {
#![allow(unused_macros)]
macro_rules! proven {
($($arg:tt)*) => ();
($($arg:tt)*) => {};
}

macro_rules! always {
Expand Down Expand Up @@ -299,7 +300,7 @@ mod assert {
mod assert {
#![allow(unused_macros)]
macro_rules! proven {
($($arg:tt)*) => ();
($($arg:tt)*) => {};
}

macro_rules! always {
Expand All @@ -323,7 +324,7 @@ mod assert {
}

macro_rules! tested {
($cond:expr) => ();
($cond:expr) => {};
}
}

Expand All @@ -339,10 +340,10 @@ mod boxed;
mod secret;

/// Container for `SecretBox`.
mod secret_box;
pub mod secret_box;

/// Container for `SecretVec`.
mod secret_vec;
pub mod secret_vec;

pub mod traits;

Expand Down
Loading