diff --git a/examples/pastebin/src/main.rs b/examples/pastebin/src/main.rs index 8dd29c7208..f5c1cd308d 100644 --- a/examples/pastebin/src/main.rs +++ b/examples/pastebin/src/main.rs @@ -11,7 +11,7 @@ use rocket::http::uri::Absolute; use rocket::response::content::RawText; 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. const HOST: Absolute<'static> = uri!("http://localhost:8000"); diff --git a/site/guide/10-pastebin.md b/site/guide/10-pastebin.md index 99914e2d2b..9c2a84e02d 100644 --- a/site/guide/10-pastebin.md +++ b/site/guide/10-pastebin.md @@ -214,7 +214,7 @@ Before we continue, we'll need to make a few design decisions. mod paste_id; # */ 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