Skip to content

Commit

Permalink
fix windiws clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
paullegranddc committed Jun 21, 2024
1 parent 56b0970 commit 7296a3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ddcommon/src/lib.rs
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -120,7 +120,7 @@ pub fn decode_uri_path_in_authority(uri: &hyper::Uri) -> anyhow::Result<PathBuf>
#[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))]
{
Expand Down

0 comments on commit 7296a3c

Please sign in to comment.