sasl: Make this crate no_std
We mostly had to import from alloc some structs that are part of the std prelude, such as Vec and String.
This commit is contained in:
parent
0267383803
commit
dc842c44d1
14 changed files with 57 additions and 19 deletions
|
|
@ -1,4 +1,5 @@
|
|||
use std::fmt;
|
||||
use alloc::vec::Vec;
|
||||
use core::fmt;
|
||||
|
||||
use crate::common::Credentials;
|
||||
|
||||
|
|
@ -84,7 +85,7 @@ impl fmt::Display for MechanismError {
|
|||
}
|
||||
}
|
||||
|
||||
impl std::error::Error for MechanismError {}
|
||||
impl core::error::Error for MechanismError {}
|
||||
|
||||
/// A trait which defines SASL mechanisms.
|
||||
pub trait Mechanism {
|
||||
|
|
|
|||
Loading…
Reference in a new issue