Rust: Unify use statement
#[cfg(test)]
mod elektra_examples {
- use crate::{KeyBuilder, ReadableKey, StringKey, WriteableKey};
+ use crate::{KeyBuilder, KeySet, LookupOption, ReadableKey, StringKey, WriteableKey};
#[test]
fn key_example() -> Result<(), Box<dyn std::error::Error>> {
@@ -45,8 +45,6 @@ mod elektra_examples {
Ok(())
}
- use crate::{KeySet, LookupOption};
-
#[test]
fn keyset_example() -> Result<(), Box<dyn std::error::Error>> {
// Create a new KeySet with enough preallocated space for 5 Keys
