Fix build error 🐸

This commit is contained in:
Yash Karandikar 2022-01-26 13:22:54 -06:00
parent f8d5233074
commit 8958cc6160

View file

@ -310,12 +310,13 @@ impl EventHandler for Handler {
content = content.replace('\n', " "); content = content.replace('\n', " ");
content = content.replace("\r\n", " "); // just in case content = content.replace("\r\n", " "); // just in case
content = format!( content = format!(
"{} ", "{} {}",
msg.attachments content,
reply.attachments
.iter() .iter()
.map(|a| a.url.clone()) .map(|a| a.url.clone())
.collect::<Vec<String>>() .collect::<Vec<String>>()
.join(' ') .join(" ")
); );
let reply_nick_bytes = reply_nick.len() + 3; let reply_nick_bytes = reply_nick.len() + 3;
let reply_content_limit = 510 - reply_nick_bytes - 11; let reply_content_limit = 510 - reply_nick_bytes - 11;