Fix nightly clippy and rustc errors

This commit is contained in:
link2xt
2021-03-27 22:02:51 +03:00
parent f17320a9cb
commit 244260a978
20 changed files with 315 additions and 316 deletions

View File

@@ -27,11 +27,11 @@ const HTTP_SCHEME: &str = "http://";
const HTTPS_SCHEME: &str = "https://";
// Make it easy to convert errors into the final `Lot`.
impl Into<Lot> for Error {
fn into(self) -> Lot {
let mut l = Lot::new();
impl From<Error> for Lot {
fn from(error: Error) -> Self {
let mut l = Self::new();
l.state = LotState::QrError;
l.text1 = Some(self.to_string());
l.text1 = Some(error.to_string());
l
}