Browse Source

Fix clippy::string-lit-as-bytes

merge-requests/23/head
Valkum 5 years ago committed by Rudi Floren
parent
commit
d78c870e51
  1. 4
      src/database/sending.rs

4
src/database/sending.rs

@ -102,7 +102,7 @@ impl Sending { @@ -102,7 +102,7 @@ impl Sending {
match response {
Ok((server, is_appservice)) => {
let mut prefix = if is_appservice {
"+".as_bytes().to_vec()
b"+".to_vec()
} else {
Vec::new()
};
@ -148,7 +148,7 @@ impl Sending { @@ -148,7 +148,7 @@ impl Sending {
Err((server, is_appservice, e)) => {
info!("Couldn't send transaction to {}\n{}", server, e);
let mut prefix = if is_appservice {
"+".as_bytes().to_vec()
b"+".to_vec()
} else {
Vec::new()
};

Loading…
Cancel
Save