client: Remove Result from Mechanism::initial().

This commit is contained in:
Emmanuel Gil Peyrot 2020-02-25 23:31:21 +01:00
commit 09745829f1
3 changed files with 8 additions and 8 deletions

View file

@ -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
}
}