diff --git a/src/lib.rs b/src/lib.rs index 08314b3..531f6d7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -27,9 +27,6 @@ pub use rust_api::*; #[cfg(feature = "python-support")] mod python_api; -#[cfg(feature = "python-support")] -pub use python_api::*; - #[cfg(any(feature = "quickcheck", test))] mod quickcheck; diff --git a/src/rust_api.rs b/src/rust_api.rs index 00fe78f..f52f217 100644 --- a/src/rust_api.rs +++ b/src/rust_api.rs @@ -311,9 +311,7 @@ impl TryFrom<&[u8]> for DnaSequence { type Error = TranslationError; fn try_from(value: &[u8]) -> Result { - let mut vec = vec![]; - vec.reserve(value.len()); - + let mut vec = Vec::with_capacity(value.len()); for &b in value { if b != b' ' && b != b'\t' { vec.push(T::try_from(b)?);