mirror of
https://github.com/MingweiSamuel/Riven.git
synced 2024-12-26 02:46:31 +00:00
Standardize re-export of reqwest
This commit is contained in:
parent
fb0030e754
commit
f716a30e31
2 changed files with 4 additions and 7 deletions
|
@ -1,13 +1,7 @@
|
|||
use std::error::Error as StdError;
|
||||
use std::fmt;
|
||||
|
||||
/// Re-exported `reqwest` types.
|
||||
pub mod reqwest {
|
||||
pub use reqwest::{
|
||||
Error, Response, StatusCode, Url
|
||||
};
|
||||
}
|
||||
use ::reqwest::*;
|
||||
use crate::reqwest::*;
|
||||
|
||||
/// Result containing RiotApiError on failure.
|
||||
pub type Result<T> = std::result::Result<T, RiotApiError>;
|
||||
|
|
|
@ -6,6 +6,9 @@
|
|||
#![cfg_attr(feature = "nightly", doc(include = "../README.md"))]
|
||||
#![cfg_attr(not(feature = "nightly"), doc = "See [README.md](https://github.com/MingweiSamuel/Riven#readme).")]
|
||||
|
||||
/// Re-exported `reqwest` types.
|
||||
pub use reqwest;
|
||||
|
||||
mod config;
|
||||
pub use config::RiotApiConfig;
|
||||
|
||||
|
|
Loading…
Reference in a new issue