mirror of
https://github.com/rust-lang-nursery/rust-cookbook
synced 2025-02-16 12:18:27 +00:00
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.
This commit is contained in:
parent
9c72aecdfc
commit
3fcb08bee2
1 changed files with 1 additions and 0 deletions
|
@ -7,6 +7,7 @@ with [`reqwest::get`] to get list of all users who have marked a GitHub project
|
||||||
|
|
||||||
```rust,no_run
|
```rust,no_run
|
||||||
#[macro_use]
|
#[macro_use]
|
||||||
|
extern crate serde;
|
||||||
extern crate serde_derive;
|
extern crate serde_derive;
|
||||||
extern crate reqwest;
|
extern crate reqwest;
|
||||||
use reqwest::Error;
|
use reqwest::Error;
|
||||||
|
|
Loading…
Add table
Reference in a new issue