diff --git a/docs/docs/languages/rust.md b/docs/docs/languages/rust.md index 0686aa29..3b1c7833 100644 --- a/docs/docs/languages/rust.md +++ b/docs/docs/languages/rust.md @@ -58,10 +58,11 @@ In this example, the worker will get a request and print all the related informa use wasm_workers_rs::{ worker, http::{self, HeaderValue, Request, Response}, + Content, }; #[worker] - fn reply(req: Request) -> Result> { + fn reply(req: Request) -> Result> { // Applied changes here to use the Response method. This requires changes // on signature and how it returns the data. let response = format!(