docs(examples): updated imports in client_json example (#2412)

This commit is contained in:
Dai Dao
2021-09-16 23:34:10 +00:00
committed by GitHub
parent 7757789589
commit 3908eeb788
2 changed files with 3 additions and 6 deletions

View File

@@ -1,11 +1,9 @@
#![deny(warnings)]
#![warn(rust_2018_idioms)]
#[macro_use]
extern crate serde_derive;
use bytes::Buf as _;
use hyper::body::Buf;
use hyper::Client;
use serde::Deserialize;
// A simple type alias so as to DRY.
type Result<T> = std::result::Result<T, Box<dyn std::error::Error + Send + Sync>>;