Skip to content

Commit 811ef2e

Browse files
committed
fixup
1 parent 65099ce commit 811ef2e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mitmproxy-rs/src/server/local_redirector.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
use mitmproxy::intercept_conf::InterceptConf;
22
use pyo3::exceptions::PyValueError;
3-
use std::path::Path;
43

54
#[cfg(target_os = "linux")]
65
use mitmproxy::packet_sources::linux::LinuxConf;
@@ -139,7 +138,7 @@ pub fn start_local_redirector(
139138
#[cfg(target_os = "macos")]
140139
{
141140
let module_filename = py.import("mitmproxy_macos")?.filename()?;
142-
let redirector_tar = Path::new(module_filename.to_str()?)
141+
let redirector_tar = std::path::Path::new(module_filename.to_str()?)
143142
.parent()
144143
.ok_or_else(|| anyhow::anyhow!("invalid path"))?
145144
.join("Mitmproxy Redirector.app.tar");

0 commit comments

Comments
 (0)