Skip to content
Snippets Groups Projects
Commit 760f7238 authored by Stephen D's avatar Stephen D
Browse files

fix new clippy lints

parent da005e5c
No related branches found
No related tags found
1 merge request!12Starboard counts
...@@ -189,7 +189,7 @@ impl SingleMessageHandler { ...@@ -189,7 +189,7 @@ impl SingleMessageHandler {
)) ))
.title(format!("{} {}", self.reaction_count, self.emoji)) .title(format!("{} {}", self.reaction_count, self.emoji))
.author(|a| a.name(&self.name).icon_url(self.msg.author.face())) .author(|a| a.name(&self.name).icon_url(self.msg.author.face()))
.timestamp(&self.msg.timestamp); .timestamp(self.msg.timestamp);
if let Some(url) = self.image { if let Some(url) = self.image {
e = e.image(url); e = e.image(url);
......
...@@ -67,7 +67,7 @@ impl Program { ...@@ -67,7 +67,7 @@ impl Program {
.and(columns::name.eq(name)), .and(columns::name.eq(name)),
), ),
) )
.set(columns::published.eq(if published { 1 } else { 0 })) .set(columns::published.eq(i32::from(published)))
.execute(conn) .execute(conn)
.ok()? == 1 .ok()? == 1
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment