mirror of
https://github.com/fafhrd91/actix-web
synced 2025-06-25 22:49:21 +02:00
make ServiceRequest::from_parts private, as it is not safe to create from parts
This commit is contained in:
@ -53,7 +53,7 @@ pub struct ServiceRequest {
|
||||
|
||||
impl ServiceRequest {
|
||||
/// Construct service request from parts
|
||||
pub fn from_parts(req: HttpRequest, payload: Payload) -> Self {
|
||||
pub(crate) fn from_parts(req: HttpRequest, payload: Payload) -> Self {
|
||||
ServiceRequest { req, payload }
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user