Explorar el Código

格式化写法

JiahengHe hace 1 año
padre
commit
29af2bd7c4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/server.rs

+ 1 - 1
src/server.rs

@@ -93,7 +93,7 @@ async fn get_rank_list(query: web::Query<RankQuery>) -> impl Responder {
     // 提取时间窗口参数(默认值 2)
     let hour_num = match query.hour_num {
         Some(i) => {
-            if i > 0{
+            return if i > 0{
                 i
             } else {
                 2