We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65099ce commit 811ef2eCopy full SHA for 811ef2e
mitmproxy-rs/src/server/local_redirector.rs
@@ -1,6 +1,5 @@
1
use mitmproxy::intercept_conf::InterceptConf;
2
use pyo3::exceptions::PyValueError;
3
-use std::path::Path;
4
5
#[cfg(target_os = "linux")]
6
use mitmproxy::packet_sources::linux::LinuxConf;
@@ -139,7 +138,7 @@ pub fn start_local_redirector(
139
138
#[cfg(target_os = "macos")]
140
{
141
let module_filename = py.import("mitmproxy_macos")?.filename()?;
142
- let redirector_tar = Path::new(module_filename.to_str()?)
+ let redirector_tar = std::path::Path::new(module_filename.to_str()?)
143
.parent()
144
.ok_or_else(|| anyhow::anyhow!("invalid path"))?
145
.join("Mitmproxy Redirector.app.tar");
0 commit comments