From 4e6c31fada410d6a156970a99c31760633d1b544 Mon Sep 17 00:00:00 2001 From: Jokler Date: Sat, 24 Feb 2018 15:10:54 +0100 Subject: Use correct return type --- src/plugins/factoids/database.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/factoids/database.rs b/src/plugins/factoids/database.rs index 53efe6a..cb5ef29 100644 --- a/src/plugins/factoids/database.rs +++ b/src/plugins/factoids/database.rs @@ -114,7 +114,7 @@ impl Database for MysqlConnection { fn get(&self, name: &str, idx: i32) -> Option { match factoids::table.find((name, idx)).first(self) { - Ok(f) => Ok(f), + Ok(f) => Some(f), Err(e) => { error!("DB Count Error: {}", e); None -- cgit v1.2.3-70-g09d2