From 7296a3cc99cdf0c4ad83fe54aa8bd00d6670f795 Mon Sep 17 00:00:00 2001 From: paullegranddc Date: Fri, 21 Jun 2024 19:30:46 +0200 Subject: [PATCH] fix windiws clippy lint --- ddcommon/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ddcommon/src/lib.rs b/ddcommon/src/lib.rs index 51a2d14ea..e1566a142 100644 --- a/ddcommon/src/lib.rs +++ b/ddcommon/src/lib.rs @@ -1,7 +1,7 @@ // Copyright 2021-Present Datadog, Inc. https://www.datadoghq.com/ // SPDX-License-Identifier: Apache-2.0 -use std::{borrow::Cow, ffi::OsString, ops::Deref, path::PathBuf, str::FromStr}; +use std::{borrow::Cow, ops::Deref, path::PathBuf, str::FromStr}; use hyper::{ header::HeaderValue, @@ -120,7 +120,7 @@ pub fn decode_uri_path_in_authority(uri: &hyper::Uri) -> anyhow::Result #[cfg(unix)] { use std::os::unix::ffi::OsStringExt; - Ok(PathBuf::from(OsString::from_vec(path))) + Ok(PathBuf::from(std::ffi::OsString::from_vec(path))) } #[cfg(not(unix))] {