何彬龙 2 년 전
부모
커밋
72c1b0ffba
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 2
      src/backend.rs
  2. 2 2
      src/router.rs

+ 2 - 2
src/backend.rs

@@ -144,7 +144,7 @@ pub struct RespResp {
     pub rmsg: Option<String>,
 }
 impl crate::Sign for RespResp {
-    fn sign(&mut self, config: &Config) {}
+    fn sign(&mut self, _: &Config) {}
 }
 pub type PubRespBody<T> = PubMsgBody<T, RespResp>;
 
@@ -354,6 +354,6 @@ pub struct CallbackReqContent {
 pub type CallbackReqBody = PubMsgBody<CallbackReqContent, ()>;
 pub type CallbackRespBody = PubMsgBody<(), RespResp>;
 impl crate::Sign for CallbackRespBody {
-    fn sign(&mut self, config: &Config) {}
+    fn sign(&mut self, _: &Config) {}
 }
 impl crate::Verify for CallbackReqBody {}

+ 2 - 2
src/router.rs

@@ -330,8 +330,8 @@ pub(crate) mod callback {
 
     use crate::{
         backend,
-        config::{self, Config},
-        sd_model, Sign, Verify,
+        config::Config,
+        sd_model, Verify,
     };
 
     #[tracing::instrument(name="HandlerCallback", ret(Debug), fields(Request=?req), skip_all )]