|
6 | 6 | * The NGINX authors are grateful to @gabihodoroaga for their contributions |
7 | 7 | * to the community at large. |
8 | 8 | */ |
9 | | -use ngx::{ |
10 | | - core::{Pool, Status}, |
11 | | - ffi::{ |
12 | | - nginx_version, ngx_atoi, ngx_command_t, ngx_conf_log_error, ngx_conf_t, ngx_connection_t, |
13 | | - ngx_event_free_peer_pt, ngx_event_get_peer_pt, ngx_http_module_t, ngx_http_upstream_init_peer_pt, |
14 | | - ngx_http_upstream_init_pt, ngx_http_upstream_init_round_robin, ngx_http_upstream_module, |
15 | | - ngx_http_upstream_srv_conf_t, ngx_http_upstream_t, ngx_int_t, ngx_module_t, ngx_peer_connection_t, ngx_str_t, |
16 | | - ngx_uint_t, NGX_CONF_NOARGS, NGX_CONF_TAKE1, NGX_CONF_UNSET, NGX_ERROR, NGX_HTTP_MODULE, NGX_HTTP_UPS_CONF, |
17 | | - NGX_LOG_EMERG, NGX_RS_HTTP_SRV_CONF_OFFSET, NGX_RS_MODULE_SIGNATURE, |
18 | | - }, |
19 | | - http::{ |
20 | | - ngx_http_conf_get_module_srv_conf, ngx_http_conf_upstream_srv_conf_immutable, |
21 | | - ngx_http_conf_upstream_srv_conf_mutable, HTTPModule, Merge, MergeConfigError, Request, |
22 | | - }, |
23 | | - http_upstream_init_peer_pt, |
24 | | - log::DebugMask, |
25 | | - ngx_log_debug_http, ngx_log_debug_mask, ngx_null_command, ngx_string, |
| 9 | +use std::ffi::{c_char, c_void}; |
| 10 | +use std::mem; |
| 11 | +use std::ptr::addr_of; |
| 12 | +use std::slice; |
| 13 | + |
| 14 | +use ngx::core::{Pool, Status}; |
| 15 | +use ngx::ffi::{ |
| 16 | + nginx_version, ngx_atoi, ngx_command_t, ngx_conf_log_error, ngx_conf_t, ngx_connection_t, ngx_event_free_peer_pt, |
| 17 | + ngx_event_get_peer_pt, ngx_http_module_t, ngx_http_upstream_init_peer_pt, ngx_http_upstream_init_pt, |
| 18 | + ngx_http_upstream_init_round_robin, ngx_http_upstream_module, ngx_http_upstream_srv_conf_t, ngx_http_upstream_t, |
| 19 | + ngx_int_t, ngx_module_t, ngx_peer_connection_t, ngx_str_t, ngx_uint_t, NGX_CONF_NOARGS, NGX_CONF_TAKE1, |
| 20 | + NGX_CONF_UNSET, NGX_ERROR, NGX_HTTP_MODULE, NGX_HTTP_UPS_CONF, NGX_LOG_EMERG, NGX_RS_HTTP_SRV_CONF_OFFSET, |
| 21 | + NGX_RS_MODULE_SIGNATURE, |
26 | 22 | }; |
27 | | -use std::{ |
28 | | - ffi::{c_char, c_void}, |
29 | | - mem, |
30 | | - ptr::addr_of, |
31 | | - slice, |
| 23 | +use ngx::http::{ |
| 24 | + ngx_http_conf_get_module_srv_conf, ngx_http_conf_upstream_srv_conf_immutable, |
| 25 | + ngx_http_conf_upstream_srv_conf_mutable, HTTPModule, Merge, MergeConfigError, Request, |
32 | 26 | }; |
| 27 | +use ngx::log::DebugMask; |
| 28 | +use ngx::{http_upstream_init_peer_pt, ngx_log_debug_http, ngx_log_debug_mask, ngx_null_command, ngx_string}; |
33 | 29 |
|
34 | 30 | #[derive(Clone, Copy, Debug)] |
35 | 31 | #[repr(C)] |
|
0 commit comments