src/server/rest.rs: avoid compiler warning

This commit is contained in:
Dietmar Maurer 2020-07-10 06:56:12 +02:00
parent a0eb0cd372
commit a40e1b0e8b
1 changed files with 1 additions and 1 deletions

View File

@ -493,7 +493,7 @@ pub async fn handle_request(api: Arc<ApiConfig>, req: Request<Body>) -> Result<R
let (parts, body) = req.into_parts(); let (parts, body) = req.into_parts();
let method = parts.method.clone(); let method = parts.method.clone();
let (path, components) = tools::normalize_uri_path(parts.uri.path())?; let (_path, components) = tools::normalize_uri_path(parts.uri.path())?;
let comp_len = components.len(); let comp_len = components.len();