diff options
| author | Jokler <jokler.contact@gmail.com> | 2018-02-24 15:10:54 +0100 |
|---|---|---|
| committer | Jokler <jokler.contact@gmail.com> | 2018-02-24 15:10:54 +0100 |
| commit | 4e6c31fada410d6a156970a99c31760633d1b544 (patch) | |
| tree | eef97463f1f9eb6f3ccc53345a8c423e03b56a2a /src/plugins/factoids/database.rs | |
| parent | 5e309d4d58735e2ccc34542564265ace3cf1856e (diff) | |
| download | frippy-4e6c31fada410d6a156970a99c31760633d1b544.tar.gz frippy-4e6c31fada410d6a156970a99c31760633d1b544.zip | |
Use correct return type
Diffstat (limited to 'src/plugins/factoids/database.rs')
| -rw-r--r-- | src/plugins/factoids/database.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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<Factoid> { match factoids::table.find((name, idx)).first(self) { - Ok(f) => Ok(f), + Ok(f) => Some(f), Err(e) => { error!("DB Count Error: {}", e); None |
