diff --git a/volo-build/src/grpc_backend.rs b/volo-build/src/grpc_backend.rs index 9bfbeba1..23eb9a3f 100644 --- a/volo-build/src/grpc_backend.rs +++ b/volo-build/src/grpc_backend.rs @@ -1,6 +1,5 @@ use crate::util::{get_base_dir, write_file, write_item}; use itertools::Itertools; -use pilota_build::middle::context::Mode; use pilota_build::{ db::RirDatabase, rir, @@ -8,8 +7,6 @@ use pilota_build::{ tags::protobuf::{ClientStreaming, ServerStreaming}, CodegenBackend, Context, DefId, IdentName, Symbol, }; -use std::io::Write; -use std::path::Path; use volo::FastStr; pub struct MkGrpcBackend; diff --git a/volo-build/src/thrift_backend.rs b/volo-build/src/thrift_backend.rs index db87b015..e85dc4ad 100644 --- a/volo-build/src/thrift_backend.rs +++ b/volo-build/src/thrift_backend.rs @@ -1,11 +1,10 @@ -use std::{io::Write, path::Path}; +use std::path::Path; use crate::util::{get_base_dir, write_file, write_item}; use itertools::Itertools; use pilota_build::{ codegen::thrift::DecodeHelper, db::RirDatabase, - middle::context::Mode, rir::{self, Method}, tags::RustWrapperArc, CodegenBackend, Context, DefId, IdentName, Symbol, ThriftBackend,