Skip to content

Commit cb940a3

Browse files
committed
rebase fixes
1 parent f0bb420 commit cb940a3

6 files changed

Lines changed: 7 additions & 8 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cot-core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cot_core"
3-
version = "0.4.0"
3+
version = "0.5.0"
44
description = "The Rust web framework for lazy developers - framework core."
55
categories = ["web-programming", "web-programming::http-server", "network-programming"]
66
edition.workspace = true

cot-core/src/response/into_response.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ use crate::error::impl_into_cot_error;
66
use crate::headers::JSON_CONTENT_TYPE;
77
use crate::headers::{HTML_CONTENT_TYPE, OCTET_STREAM_CONTENT_TYPE, PLAIN_TEXT_CONTENT_TYPE};
88
use crate::html::Html;
9-
use crate::response::Redirect;
10-
use crate::response::Response;
9+
use crate::response::{RESPONSE_BUILD_FAILURE, Redirect, Response};
1110
use crate::{Body, Error, StatusCode};
1211

1312
/// Trait for generating responses.
@@ -387,7 +386,7 @@ impl IntoResponse for Body {
387386
}
388387

389388
impl IntoResponse for Redirect {
390-
fn into_response(self) -> cot::Result<Response> {
389+
fn into_response(self) -> crate::Result<Response> {
391390
let response = http::Response::builder()
392391
.status(StatusCode::SEE_OTHER)
393392
.header(http::header::LOCATION, self.0)

cot/src/email.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ use transport::{BoxedTransport, Transport};
3939

4040
use crate::email::transport::TransportError;
4141
use crate::email::transport::console::Console;
42-
use crate::error::error_impl::impl_into_cot_error;
42+
use crate::error::impl_into_cot_error;
4343
const ERROR_PREFIX: &str = "email message build error:";
4444

4545
/// Represents errors that can occur when sending an email.

cot/src/email/transport.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use cot::email::EmailMessageError;
1111
use thiserror::Error;
1212

1313
use crate::email::EmailMessage;
14-
use crate::error::error_impl::impl_into_cot_error;
14+
use crate::error::impl_into_cot_error;
1515

1616
pub mod console;
1717
pub mod smtp;

cot/src/request.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ pub(crate) use cot_core::request::{AppName, InvalidContentType, RouteName};
2121
pub use cot_core::request::{PathParams, PathParamsDeserializerError, Request, RequestHead};
2222
use http::Extensions;
2323

24+
use crate::Result;
2425
use crate::request::extractors::FromRequestHead;
2526
use crate::router::Router;
26-
use crate::{Body, Result};
2727

2828
pub mod extractors;
2929
mod private {

0 commit comments

Comments
 (0)