1
0
Fork 0
mirror of https://gitlab.com/msrd0/gotham-restful.git synced 2025-04-20 06:54:46 +00:00

make all fields of response private, we're breaking change anyways

Closes #34
Related to #27
This commit is contained in:
Dominic 2021-01-14 18:45:32 +01:00
parent 44f3c9fe84
commit b7a1193333
Signed by: msrd0
GPG key ID: DCC8C247452E98F9
9 changed files with 23 additions and 21 deletions

View file

@ -99,7 +99,6 @@ fn errorlog<E: Display>(e: E) {
#[cfg(not(feature = "errorlog"))]
fn errorlog<E>(_e: E) {}
#[allow(deprecated)]
fn handle_error<E>(e: E) -> Pin<Box<dyn Future<Output = Result<Response, E::Err>> + Send>>
where
E: Display + IntoResponseError
@ -161,7 +160,6 @@ mod test {
struct MsgError;
#[test]
#[allow(deprecated)]
fn result_from_future() {
let nc = NoContent::default();
let res = block_on(nc.into_response()).unwrap();

View file

@ -92,7 +92,6 @@ where
}
#[cfg(test)]
#[allow(deprecated)]
mod test {
use super::*;
use futures_executor::block_on;

View file

@ -131,7 +131,6 @@ mod test {
use mime::TEXT_PLAIN;
#[test]
#[allow(deprecated)]
fn raw_response() {
let msg = "Test";
let raw = Raw::new(msg, TEXT_PLAIN);

View file

@ -49,7 +49,6 @@ where
}
#[cfg(test)]
#[allow(deprecated)]
mod test {
use super::*;
use crate::result::OrAllTypes;

View file

@ -124,7 +124,6 @@ mod test {
}
#[test]
#[allow(deprecated)]
fn success_always_successfull() {
let success: Success<Msg> = Msg::default().into();
let res = block_on(success.into_response()).expect("didn't expect error response");