diff --git a/src-tauri/grpc/src/proto.rs b/src-tauri/grpc/src/proto.rs index 5051e3ec..3842f22f 100644 --- a/src-tauri/grpc/src/proto.rs +++ b/src-tauri/grpc/src/proto.rs @@ -1,25 +1,25 @@ use std::env::temp_dir; use std::ops::Deref; -use std::path::{Path, PathBuf}; +use std::path::PathBuf; use std::str::FromStr; use anyhow::anyhow; -use hyper::Client; use hyper::client::HttpConnector; +use hyper::Client; use hyper_rustls::{HttpsConnector, HttpsConnectorBuilder}; use log::{debug, warn}; use prost::Message; use prost_reflect::{DescriptorPool, MethodDescriptor}; use prost_types::{FileDescriptorProto, FileDescriptorSet}; -use tauri::{AppHandle, Manager}; use tauri::path::BaseDirectory; +use tauri::{AppHandle, Manager}; use tauri_plugin_shell::ShellExt; use tokio::fs; use tokio_stream::StreamExt; use tonic::body::BoxBody; use tonic::codegen::http::uri::PathAndQuery; -use tonic::Request; use tonic::transport::Uri; +use tonic::Request; use tonic_reflection::pb::server_reflection_client::ServerReflectionClient; use tonic_reflection::pb::server_reflection_request::MessageRequest; use tonic_reflection::pb::server_reflection_response::MessageResponse; diff --git a/src-tauri/tauri-plugin-plugin-runtime/src/nodejs.rs b/src-tauri/tauri-plugin-plugin-runtime/src/nodejs.rs index 8c026404..c40a921b 100644 --- a/src-tauri/tauri-plugin-plugin-runtime/src/nodejs.rs +++ b/src-tauri/tauri-plugin-plugin-runtime/src/nodejs.rs @@ -1,4 +1,4 @@ -use std::path::{Path, PathBuf}; +use std::path::PathBuf; use std::process::Command; use std::time::Duration; @@ -7,8 +7,8 @@ use log::{debug, info}; use rand::distributions::{Alphanumeric, DistString}; use serde; use serde::Deserialize; -use tauri::{AppHandle, Manager, Runtime}; use tauri::path::BaseDirectory; +use tauri::{AppHandle, Manager, Runtime}; use tauri_plugin_shell::ShellExt; use tokio::fs;