mirror of https://github.com/rwf2/Rocket.git
Fix 'PasteId' 'use' in pastebin tutorial.
This commit is contained in:
parent
fccb5759db
commit
78aad3aa95
|
@ -11,7 +11,7 @@ use rocket::http::uri::Absolute;
|
||||||
use rocket::response::content::RawText;
|
use rocket::response::content::RawText;
|
||||||
use rocket::tokio::fs::{self, File};
|
use rocket::tokio::fs::{self, File};
|
||||||
|
|
||||||
use crate::paste_id::PasteId;
|
use paste_id::PasteId;
|
||||||
|
|
||||||
// In a real application, these would be retrieved dynamically from a config.
|
// In a real application, these would be retrieved dynamically from a config.
|
||||||
const HOST: Absolute<'static> = uri!("http://localhost:8000");
|
const HOST: Absolute<'static> = uri!("http://localhost:8000");
|
||||||
|
|
|
@ -214,7 +214,7 @@ Before we continue, we'll need to make a few design decisions.
|
||||||
mod paste_id;
|
mod paste_id;
|
||||||
# */ mod paste_id { pub struct PasteId; }
|
# */ mod paste_id { pub struct PasteId; }
|
||||||
|
|
||||||
use crate::paste_id::PasteId;
|
use paste_id::PasteId;
|
||||||
```
|
```
|
||||||
|
|
||||||
You'll notice that our code to generate paste IDs uses the `rand` crate, so
|
You'll notice that our code to generate paste IDs uses the `rand` crate, so
|
||||||
|
|
Loading…
Reference in New Issue