Loading pipe-lib/Cargo.toml +3 −0 Original line number Diff line number Diff line Loading @@ -35,3 +35,6 @@ bytes = "1.7.2" is_executable = "1.0.4" toml = "0.8.19" pyproject-toml = "0.11.0" [lints.rust] unsafe_code = "forbid" pipe-lib/src/lib.rs +2 −2 Original line number Diff line number Diff line Loading @@ -1164,8 +1164,8 @@ impl ModuleUri<'_> { | ModuleUri::Url(uri) => match uri.scheme() { | Scheme::SSH if ModuleUri::is_allowed(uri.clone()) => true, | _ if ModuleUri::is_allowed(uri.clone()) => { let runtime = tokio::runtime::Builder::new_current_thread().enable_all().build().unwrap(); let _ = runtime.block_on(check(uri.to_string())); // let runtime = tokio::runtime::Builder::new_current_thread().enable_all().build().unwrap(); // let _ = runtime.block_on(check(uri.to_string())); true } | _ => false, Loading Loading
pipe-lib/Cargo.toml +3 −0 Original line number Diff line number Diff line Loading @@ -35,3 +35,6 @@ bytes = "1.7.2" is_executable = "1.0.4" toml = "0.8.19" pyproject-toml = "0.11.0" [lints.rust] unsafe_code = "forbid"
pipe-lib/src/lib.rs +2 −2 Original line number Diff line number Diff line Loading @@ -1164,8 +1164,8 @@ impl ModuleUri<'_> { | ModuleUri::Url(uri) => match uri.scheme() { | Scheme::SSH if ModuleUri::is_allowed(uri.clone()) => true, | _ if ModuleUri::is_allowed(uri.clone()) => { let runtime = tokio::runtime::Builder::new_current_thread().enable_all().build().unwrap(); let _ = runtime.block_on(check(uri.to_string())); // let runtime = tokio::runtime::Builder::new_current_thread().enable_all().build().unwrap(); // let _ = runtime.block_on(check(uri.to_string())); true } | _ => false, Loading