Update to Edition 2018.

This commit is contained in:
Emmanuel Gil Peyrot 2019-01-17 22:54:32 +01:00
commit 9e9f09a9a5
11 changed files with 30 additions and 34 deletions

View file

@ -1,7 +1,7 @@
//! Provides the SASL "ANONYMOUS" mechanism.
use client::Mechanism;
use common::{Credentials, Secret};
use crate::client::Mechanism;
use crate::common::{Credentials, Secret};
/// A struct for the SASL ANONYMOUS mechanism.
pub struct Anonymous;

View file

@ -1,7 +1,7 @@
//! Provides the SASL "PLAIN" mechanism.
use client::Mechanism;
use common::{Credentials, Identity, Password, Secret};
use crate::client::Mechanism;
use crate::common::{Credentials, Identity, Password, Secret};
/// A struct for the SASL PLAIN mechanism.
pub struct Plain {

View file

@ -2,11 +2,11 @@
use base64;
use client::Mechanism;
use common::scram::{generate_nonce, ScramProvider};
use common::{parse_frame, xor, ChannelBinding, Credentials, Identity, Password, Secret};
use crate::client::Mechanism;
use crate::common::scram::{generate_nonce, ScramProvider};
use crate::common::{parse_frame, xor, ChannelBinding, Credentials, Identity, Password, Secret};
use error::Error;
use crate::error::Error;
use std::marker::PhantomData;
@ -189,9 +189,9 @@ impl<S: ScramProvider> Mechanism for Scram<S> {
#[cfg(test)]
mod tests {
use client::mechanisms::Scram;
use client::Mechanism;
use common::scram::{Sha1, Sha256};
use crate::client::mechanisms::Scram;
use crate::client::Mechanism;
use crate::common::scram::{Sha1, Sha256};
#[test]
fn scram_sha1_works() {

View file

@ -1,4 +1,4 @@
use common::Credentials;
use crate::common::Credentials;
/// A trait which defines SASL mechanisms.
pub trait Mechanism {