mirror of
https://gitlab.com/Anson-Projects/shuttle-christmas-code-hunt-2023.git
synced 2025-06-15 14:46:47 +00:00
clean up
This commit is contained in:
parent
8754cf5bc1
commit
b21d967505
@ -2,6 +2,8 @@
|
||||
name = "cch23-anson"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
authors = ["Anson Biggs <anson@ansonbiggs.com>"]
|
||||
license = "MIT"
|
||||
|
||||
[dependencies]
|
||||
rocket = "0.5.0"
|
||||
|
@ -8,11 +8,10 @@ fn index() -> &'static str {
|
||||
}
|
||||
|
||||
#[get("/-1/error")]
|
||||
fn error() -> Status{
|
||||
Status::InternalServerError
|
||||
fn error() -> Status {
|
||||
Status::InternalServerError
|
||||
}
|
||||
|
||||
|
||||
#[shuttle_runtime::main]
|
||||
async fn main() -> shuttle_rocket::ShuttleRocket {
|
||||
let rocket = rocket::build().mount("/", routes![index, error]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user