Skip to content

Commit

Permalink
chore!(http): remove result (#931)
Browse files Browse the repository at this point in the history
Continued from #821.
  • Loading branch information
7596ff authored Jun 13, 2021
1 parent 3f12d90 commit e72b4ff
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
4 changes: 0 additions & 4 deletions http/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,13 @@ use hyper::{Body, Response, StatusCode};
use std::{
error::Error as StdError,
fmt::{Display, Formatter, Result as FmtResult},
result::Result as StdResult,
};

#[cfg(not(feature = "simd-json"))]
use serde_json::Error as JsonError;
#[cfg(feature = "simd-json")]
use simd_json::Error as JsonError;

#[deprecated(since = "0.4.3")]
pub type Result<T, E = Error> = StdResult<T, E>;

#[derive(Debug)]
pub struct Error {
pub(super) source: Option<Box<dyn StdError + Send + Sync>>,
Expand Down
3 changes: 0 additions & 3 deletions http/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,6 @@ pub const API_VERSION: u8 = 8;

pub use crate::{client::Client, error::Error};

#[allow(deprecated)]
pub use crate::error::Result;

#[cfg(not(any(
feature = "native",
feature = "rustls-native-roots",
Expand Down

0 comments on commit e72b4ff

Please sign in to comment.