From 194c498d53ed68a9c70d548008e60eb7bdcbd59a Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 2 Aug 2020 00:26:01 +0100 Subject: refactor(paroxysm): Explicitly macro imports, no more 'extern crate' Removes all but one occurence of `extern crate`, to conform with Rust 2018. The last one is necessary because Diesel is a giant jungle of complicated macros re-exported from private crates, and the current version makes it hard to import those directly instead. Change-Id: Id14165a456d5c3ce6f7a4e0222c611640113eb11 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1549 Tested-by: BuildkiteCI Reviewed-by: kanepyork --- fun/paroxysm/src/keyword.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'fun/paroxysm/src/keyword.rs') diff --git a/fun/paroxysm/src/keyword.rs b/fun/paroxysm/src/keyword.rs index 9c5ea47ea5..16d962ab05 100644 --- a/fun/paroxysm/src/keyword.rs +++ b/fun/paroxysm/src/keyword.rs @@ -2,6 +2,7 @@ use crate::models::{Entry, Keyword, NewEntry, NewKeyword}; use diesel::pg::PgConnection; use diesel::prelude::*; use failure::Error; +use failure::format_err; use std::borrow::Cow; /// Maximum number of times we'll follow a `see: ` pointer. -- cgit 1.4.1