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