File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ impl Request {
159
159
///
160
160
/// # Safety
161
161
/// Caller must ensure that type `T` matches the configuration type for the specified module.
162
- pub fn get_module_main_conf < T > ( & self , module : & ngx_module_t ) -> Option < & ' static T > {
162
+ pub unsafe fn get_module_main_conf < T > ( & self , module : & ngx_module_t ) -> Option < & ' static T > {
163
163
// SAFETY: main conf is either NULL or allocated with ngx_p(c)alloc and
164
164
// explicitly initialized by the module
165
165
unsafe {
@@ -174,7 +174,7 @@ impl Request {
174
174
///
175
175
/// # Safety
176
176
/// Caller must ensure that type `T` matches the configuration type for the specified module.
177
- pub fn get_module_srv_conf < T > ( & self , module : & ngx_module_t ) -> Option < & ' static T > {
177
+ pub unsafe fn get_module_srv_conf < T > ( & self , module : & ngx_module_t ) -> Option < & ' static T > {
178
178
// SAFETY: server conf is either NULL or allocated with ngx_p(c)alloc and
179
179
// explicitly initialized by the module
180
180
unsafe {
@@ -189,7 +189,7 @@ impl Request {
189
189
///
190
190
/// # Safety
191
191
/// Caller must ensure that type `T` matches the configuration type for the specified module.
192
- pub fn get_module_loc_conf < T > ( & self , module : & ngx_module_t ) -> Option < & ' static T > {
192
+ pub unsafe fn get_module_loc_conf < T > ( & self , module : & ngx_module_t ) -> Option < & ' static T > {
193
193
// SAFETY: location conf is either NULL or allocated with ngx_p(c)alloc and
194
194
// explicitly initialized by the module
195
195
unsafe {
You can’t perform that action at this time.
0 commit comments