deps: Update to a more recent rocket and rust toolchain

With this patch, Plume will be use a more up-to-date revision of
Rocket, that works with nightly-2018-07-17. It may have been able to
make it work with a more recent revision, but it turns out rocket has
introduced several breaking changes so I’d rather fix those.

Besides updating rocket_i18n and rocket_csrf to use the same revision
than Plume, this patch deals with the new implementation of the
Uri<'_> type. It silents a class of warnings, to deal with a change in
rustc which affects diesel. This latter change should be reverted as
soon as diesel releases a new version of its crate.
This commit is contained in:
Thomas Letan
2018-09-08 01:11:27 +02:00
parent ae8f8a1411
commit 0ef4717a7f
18 changed files with 1097 additions and 737 deletions
+4 -4
View File
@@ -14,10 +14,10 @@ failure_derive = "0.1"
gettext-rs = "0.4"
heck = "0.3.0"
hex = "0.3"
hyper = "*"
openssl = "0.10.6"
hyper = "0.11.27"
openssl = "0.10.11"
reqwest = "0.8"
serde = "*"
serde = "1.0"
serde_derive = "1.0"
serde_json = "1.0"
@@ -31,4 +31,4 @@ version = "0.1.2"
[dependencies.rocket]
git = "https://github.com/SergioBenitez/Rocket"
rev = "df7111143e466c18d1f56377a8d9530a5a306aba"
rev = "55459db7732b9a240826a5c120c650f87e3372ce"
+1 -1
View File
@@ -17,7 +17,7 @@ pub fn make_actor_id(name: String) -> String {
}
pub fn requires_login(message: &str, url: Uri) -> Flash<Redirect> {
Flash::new(Redirect::to(Uri::new(format!("/login?m={}", gettext(message.to_string())))), "callback", url.as_str())
Flash::new(Redirect::to(format!("/login?m={}", gettext(message.to_string()))), "callback", url.to_string())
}
/// Returns (HTML, mentions)