mirror of
https://github.com/rust-lang-nursery/rust-cookbook
synced 2024-11-21 19:13:07 +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
|
||||
#[macro_use]
|
||||
extern crate serde;
|
||||
extern crate serde_derive;
|
||||
extern crate reqwest;
|
||||
use reqwest::Error;
|
||||
|
|
Loading…
Reference in a new issue