Fix 'PasteId' 'use' in pastebin tutorial.

This commit is contained in:
Sergio Benitez 2022-05-08 18:30:13 -05:00
parent fccb5759db
commit 78aad3aa95
2 changed files with 2 additions and 2 deletions

View File

@ -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");

View File

@ -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