Remove usage of `Self` struct constructors

This commit is contained in:
Yong Wen Chua 2018-12-19 08:11:54 +08:00
parent f7ae2e65d2
commit 30bc677293
No known key found for this signature in database
GPG Key ID: EDC57EEC439CF10B
1 changed files with 1 additions and 1 deletions

View File

@ -857,7 +857,7 @@ impl Cors {
/// Create a `Cors` struct from a [`CorsOptions`]
pub fn from_options(options: &CorsOptions) -> Result<Self, Error> {
options.validate()?;
Ok(Self(options.clone()))
Ok(Cors(options.clone()))
}
/// Manually respond to a request with CORS checks and headers using an Owned `Cors`.