mirror of
https://github.com/isar/rusqlite.git
synced 2025-11-02 14:58:56 +08:00
Rust 2018 idioms
This commit is contained in:
@@ -98,7 +98,7 @@ pub enum Type {
|
||||
}
|
||||
|
||||
impl fmt::Display for Type {
|
||||
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
match *self {
|
||||
Type::Null => write!(f, "Null"),
|
||||
Type::Integer => write!(f, "Integer"),
|
||||
@@ -111,7 +111,7 @@ impl fmt::Display for Type {
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
extern crate time;
|
||||
use time;
|
||||
|
||||
use super::Value;
|
||||
use crate::{Connection, Error, NO_PARAMS};
|
||||
|
||||
Reference in New Issue
Block a user