@@ -156,9 +156,6 @@ impl Request {
156156 /// Global configuration for a module.
157157 ///
158158 /// Applies to the entire `http` block.
159- ///
160- /// # Safety
161- /// Caller must ensure that type `T` matches the configuration type for the specified module.
162159 pub fn get_module_main_conf < T > ( & self , module : & ngx_module_t ) -> Option < & ' static T > {
163160 // SAFETY: main conf is either NULL or allocated with ngx_p(c)alloc and
164161 // explicitly initialized by the module
@@ -171,9 +168,6 @@ impl Request {
171168 /// Server-specific configuration for a module.
172169 ///
173170 /// Applies to a single `server` block.
174- ///
175- /// # Safety
176- /// Caller must ensure that type `T` matches the configuration type for the specified module.
177171 pub fn get_module_srv_conf < T > ( & self , module : & ngx_module_t ) -> Option < & ' static T > {
178172 // SAFETY: server conf is either NULL or allocated with ngx_p(c)alloc and
179173 // explicitly initialized by the module
@@ -186,9 +180,6 @@ impl Request {
186180 /// Location-specific configuration for a module.
187181 ///
188182 /// Applies to a signle `location`, `if` or `limit_except` block.
189- ///
190- /// # Safety
191- /// Caller must ensure that type `T` matches the configuration type for the specified module.
192183 pub fn get_module_loc_conf < T > ( & self , module : & ngx_module_t ) -> Option < & ' static T > {
193184 // SAFETY: location conf is either NULL or allocated with ngx_p(c)alloc and
194185 // explicitly initialized by the module
0 commit comments