Postrelease, some cleanup.

This commit is contained in:
Rasmus Kaj 2019-10-28 19:58:26 +01:00
parent 933beba1aa
commit 5758e38263
2 changed files with 2 additions and 7 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "rphotos"
version = "0.6.12"
version = "0.6.13-PRE"
authors = ["Rasmus Kaj <kaj@kth.se>"]
edition = "2018"

View File

@ -1,4 +1,3 @@
#![allow(dead_code)] // for the date_part macro-created function
use super::result::Error;
use crate::schema::people::dsl::people;
use crate::schema::photos::dsl::photos;
@ -7,11 +6,7 @@ use crate::schema::tags::dsl::tags;
use diesel::expression::dsl::{count_star, sql};
use diesel::pg::PgConnection;
use diesel::prelude::*;
use diesel::sql_types::{BigInt, Double, Nullable, Text, Timestamp};
sql_function!(date_part,
date_part_t,
(part: Text, date: Nullable<Timestamp>) -> Nullable<Double>);
use diesel::sql_types::{BigInt, Double, Nullable};
pub fn show_stats(db: &PgConnection) -> Result<(), Error> {
println!(