Explorar o código

格式化写法

JiahengHe hai 1 ano
pai
achega
29af2bd7c4
Modificáronse 1 ficheiros con 1 adicións e 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