Follow clippy

This commit is contained in:
Kitaiti Makoto 2022-05-20 02:13:23 +09:00
parent d6ee49b880
commit 29055d1957

View File

@ -101,7 +101,7 @@ pub fn create(
Ok(_) => ValidationErrors::new(),
Err(e) => e,
};
if Blog::find_by_fqn(&conn, &slug).is_ok() {
if Blog::find_by_fqn(&conn, slug).is_ok() {
errors.add(
"title",
ValidationError {