@@ -156,9 +156,6 @@ impl Request {
156
156
/// Global configuration for a module.
157
157
///
158
158
/// Applies to the entire `http` block.
159
- ///
160
- /// # Safety
161
- /// Caller must ensure that type `T` matches the configuration type for the specified module.
162
159
pub fn get_module_main_conf < T > ( & self , module : & ngx_module_t ) -> Option < & ' static T > {
163
160
// SAFETY: main conf is either NULL or allocated with ngx_p(c)alloc and
164
161
// explicitly initialized by the module
@@ -171,9 +168,6 @@ impl Request {
171
168
/// Server-specific configuration for a module.
172
169
///
173
170
/// Applies to a single `server` block.
174
- ///
175
- /// # Safety
176
- /// Caller must ensure that type `T` matches the configuration type for the specified module.
177
171
pub fn get_module_srv_conf < T > ( & self , module : & ngx_module_t ) -> Option < & ' static T > {
178
172
// SAFETY: server conf is either NULL or allocated with ngx_p(c)alloc and
179
173
// explicitly initialized by the module
@@ -186,9 +180,6 @@ impl Request {
186
180
/// Location-specific configuration for a module.
187
181
///
188
182
/// 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.
192
183
pub fn get_module_loc_conf < T > ( & self , module : & ngx_module_t ) -> Option < & ' static T > {
193
184
// SAFETY: location conf is either NULL or allocated with ngx_p(c)alloc and
194
185
// explicitly initialized by the module
0 commit comments