client: Remove Result from Mechanism::initial().
This commit is contained in:
parent
7d78455981
commit
09745829f1
3 changed files with 8 additions and 8 deletions
|
|
@ -39,12 +39,12 @@ impl Mechanism for Plain {
|
|||
}
|
||||
}
|
||||
|
||||
fn initial(&mut self) -> Result<Vec<u8>, String> {
|
||||
fn initial(&mut self) -> Vec<u8> {
|
||||
let mut auth = Vec::new();
|
||||
auth.push(0);
|
||||
auth.extend(self.username.bytes());
|
||||
auth.push(0);
|
||||
auth.extend(self.password.bytes());
|
||||
Ok(auth)
|
||||
auth
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue