From 3fcb08bee20728d561358165770f1d1833ab2f80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Srinivas=20Reddy=20Thatiparthy=20=28=E0=B0=B6=E0=B1=8D?= =?UTF-8?q?=E0=B0=B0=E0=B1=80=E0=B0=A8=E0=B0=BF=E0=B0=B5=E0=B0=BE=E0=B0=B8?= =?UTF-8?q?=E0=B1=8D=20=20=E0=B0=B0=E0=B1=86=E0=B0=A1=E0=B1=8D=E0=B0=A1?= =?UTF-8?q?=E0=B0=BF=20=E0=B0=A4=E0=B0=BE=E0=B0=9F=E0=B0=BF=E0=B0=AA?= =?UTF-8?q?=E0=B0=B0=E0=B1=8D=E0=B0=A4=E0=B0=BF=29?= Date: Fri, 20 Sep 2019 04:51:40 +0530 Subject: [PATCH] Fix the compilation error (#532) Try `cargo run --verbose` after copying the code into a separate project. This example snippet does not compile and requires `serde` create to be present in the main.rs. So include the serde crate will fix the compilation error. --- src/web/clients/api/rest-get.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/web/clients/api/rest-get.md b/src/web/clients/api/rest-get.md index ae69484..2ba2452 100644 --- a/src/web/clients/api/rest-get.md +++ b/src/web/clients/api/rest-get.md @@ -7,6 +7,7 @@ with [`reqwest::get`] to get list of all users who have marked a GitHub project ```rust,no_run #[macro_use] +extern crate serde; extern crate serde_derive; extern crate reqwest; use reqwest::Error;