Skip to content

Commit 7e60216

Browse files
RUST-435 Export authentication options from the options module (#185)
1 parent 1103a14 commit 7e60216

File tree

7 files changed

+7
-14
lines changed

7 files changed

+7
-14
lines changed

src/client/auth/scram.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ impl ServerFinal {
635635
mod tests {
636636
use bson::Bson;
637637

638-
use crate::options::auth::scram::ServerFirst;
638+
use super::ServerFirst;
639639

640640
#[cfg_attr(feature = "tokio-runtime", tokio::test)]
641641
#[cfg_attr(feature = "async-std-runtime", async_std::test)]

src/client/auth/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use lazy_static::lazy_static;
22

3-
use crate::{cmap::StreamDescription, options::auth::AuthMechanism};
3+
use crate::{cmap::StreamDescription, options::AuthMechanism};
44

55
lazy_static! {
66
static ref MECHS: [String; 2] = [

src/options.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
//! ```
1717
1818
pub use crate::{
19-
client::{auth, options::*},
19+
client::{auth::*, options::*},
2020
coll::options::*,
2121
collation::*,
2222
concern::*,

src/test/client.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@ use serde::Deserialize;
55

66
use crate::{
77
error::{Error, ErrorKind},
8-
options::{
9-
auth::{AuthMechanism, Credential},
10-
ClientOptions,
11-
ListDatabasesOptions,
12-
},
8+
options::{AuthMechanism, ClientOptions, Credential, ListDatabasesOptions},
139
selection_criteria::{ReadPreference, SelectionCriteria},
1410
test::{util::TestClient, CLIENT_OPTIONS, LOCK},
1511
Client,

src/test/spec/auth.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ use bson::Document;
44
use serde::Deserialize;
55

66
use crate::{
7-
options::{
8-
auth::{AuthMechanism, Credential},
9-
ClientOptions,
10-
},
7+
options::{AuthMechanism, ClientOptions, Credential},
118
test::run_spec_test,
129
};
1310

src/test/util/matchable.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use bson::{Bson, Document};
44

55
use crate::{
66
bson_util,
7-
options::auth::{AuthMechanism, Credential},
7+
options::{AuthMechanism, Credential},
88
};
99

1010
pub trait Matchable: Sized + 'static {

src/test/util/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use self::event::EventHandler;
1818
use super::CLIENT_OPTIONS;
1919
use crate::{
2020
error::{CommandError, ErrorKind, Result},
21-
options::{auth::AuthMechanism, ClientOptions, CreateCollectionOptions},
21+
options::{AuthMechanism, ClientOptions, CreateCollectionOptions},
2222
Client,
2323
Collection,
2424
};

0 commit comments

Comments
 (0)