From 9829bbfcd57c57e237c6aacb96a78d0b9f5bab68 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Tue, 29 Jun 2021 22:44:11 -0600 Subject: lol no generics --- examples/tutorial01/main.rs | 3 +-- examples/tutorial02/main.rs | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'examples') diff --git a/examples/tutorial01/main.rs b/examples/tutorial01/main.rs index af2f14d..47623e6 100644 --- a/examples/tutorial01/main.rs +++ b/examples/tutorial01/main.rs @@ -2,7 +2,6 @@ extern crate diesel; use tosin::contrib::admin; -use tosin::db::backend::Connectable; use tosin::urls::{url_map, UrlMap}; use tosin::Settings; @@ -15,7 +14,7 @@ fn urls() -> UrlMap { } } -fn settings() -> Settings { +fn settings() -> Settings { Settings { ..Settings::default() } diff --git a/examples/tutorial02/main.rs b/examples/tutorial02/main.rs index 7c244dd..5d78e5b 100644 --- a/examples/tutorial02/main.rs +++ b/examples/tutorial02/main.rs @@ -2,7 +2,6 @@ extern crate diesel; use tosin::contrib::admin; -use tosin::db::backend::Connectable; use tosin::urls::{url_map, UrlMap}; use tosin::Settings; @@ -15,7 +14,7 @@ fn urls() -> UrlMap { } } -fn settings() -> Settings { +fn settings() -> Settings { Settings { installed_apps: &[&polls::APP, &admin::APP], ..Settings::default() -- cgit v1.2.3