From d5cd368e54b6e931c41da1da669e1f0756a890fe Mon Sep 17 00:00:00 2001 From: Christoph Voigt Date: Fri, 11 Aug 2023 10:18:41 +0200 Subject: [PATCH] fix rust language example --- docs/docs/languages/rust.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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!(