updated existing dependencies. Changed the code to be able to compile with the new changes.
This commit is contained in:
parent
7605a85aa4
commit
f14941208a
File diff suppressed because it is too large
Load Diff
|
@ -4,7 +4,7 @@ version = "0.1.0"
|
|||
authors = ["Gonçalo Valério <gon@ovalerio.net>"]
|
||||
|
||||
[dependencies]
|
||||
actix-web = "0.6.11"
|
||||
diesel = { version = "1.3.0" }
|
||||
toml = "0.4.6"
|
||||
actix-web = "0.7.18"
|
||||
diesel = { version = "1.4.2" }
|
||||
toml = "0.5.0"
|
||||
clap = "2.32.0"
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
extern crate actix_web;
|
||||
extern crate clap;
|
||||
use clap::{Arg};
|
||||
use actix_web::{server, App, HttpRequest};
|
||||
use actix_web::{server, App, HttpRequest, Responder};
|
||||
|
||||
fn index(_req: HttpRequest) -> &'static str {
|
||||
fn index(_req: &HttpRequest) -> impl Responder {
|
||||
"Hello world!"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue