aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-06-29 22:44:11 -0600
committerMelody Horn <melody@boringcactus.com>2021-06-29 22:44:11 -0600
commit9829bbfcd57c57e237c6aacb96a78d0b9f5bab68 (patch)
tree43dc643d7b592d9abc4c5f89121e249ccb597d7d /tests
parent9dd7f2256a82f95096d928aaef70d15603152ebc (diff)
downloadtosin-9829bbfcd57c57e237c6aacb96a78d0b9f5bab68.tar.gz
tosin-9829bbfcd57c57e237c6aacb96a78d0b9f5bab68.zip
lol no generics
Diffstat (limited to 'tests')
-rw-r--r--tests/tutorial/mod.rs13
1 files changed, 5 insertions, 8 deletions
diff --git a/tests/tutorial/mod.rs b/tests/tutorial/mod.rs
index f101283..aeb3135 100644
--- a/tests/tutorial/mod.rs
+++ b/tests/tutorial/mod.rs
@@ -137,7 +137,6 @@ pub fn urls() -> UrlMap {
extern crate diesel;
use tosin::contrib::admin;
-use tosin::db::backend::Connectable;
use tosin::urls::{url_map, UrlMap};
use tosin::Settings;
@@ -150,7 +149,7 @@ fn urls() -> UrlMap {
}
}
-fn settings() -> Settings<impl Connectable> {
+fn settings() -> Settings {
Settings {
..Settings::default()
}
@@ -208,7 +207,6 @@ pub fn step2() {
use tosin::Settings;
use tosin::contrib::admin;
-use tosin::db::backend::Connectable;
use tosin::urls::{UrlMap, url_map};
mod polls;
@@ -220,7 +218,7 @@ fn urls() -> UrlMap {
}
}
-fn settings() -> Settings<impl Connectable> {
+fn settings() -> Settings {
Settings {
installed_apps: &[
&admin::APP,
@@ -254,8 +252,8 @@ edition = "2018"
[dependencies]
chrono = "0.4"
-diesel = { version = "1.4.4", features = ["sqlite"] }
-tosin = { path = "../../.." }
+diesel = "1.4.4"
+tosin = { path = "../../..", features = ["sqlite"] }
"#,
)
.unwrap();
@@ -299,7 +297,6 @@ gather!();
use tosin::Settings;
use tosin::contrib::admin;
-use tosin::db::backend::Connectable;
use tosin::urls::{UrlMap, url_map};
mod polls;
@@ -311,7 +308,7 @@ fn urls() -> UrlMap {
}
}
-fn settings() -> Settings<impl Connectable> {
+fn settings() -> Settings {
Settings {
installed_apps: &[
&polls::APP,