@@ -47,7 +47,7 @@ pub fn list_ing(
47
47
match style {
48
48
Style :: Colorful => colorful:: ing:: list_ing ( time_style, ing_with_comment_iter, align) ,
49
49
Style :: Normal => normal:: ing:: list_ing ( time_style, ing_with_comment_iter, align) ,
50
- Style :: Json => json:: ing:: list_ing ( ing_with_comment_iter) ,
50
+ Style :: Json => json:: ing:: list_ing ( ing_with_comment_iter) . into_ok ( ) ,
51
51
}
52
52
}
53
53
@@ -106,7 +106,7 @@ pub fn show_post_comment(
106
106
match style {
107
107
Style :: Colorful => colorful:: post:: show_post_comment ( time_style, comment_iter) ,
108
108
Style :: Normal => normal:: post:: show_post_comment ( time_style, comment_iter) ,
109
- Style :: Json => json:: post:: show_post_comment ( comment_iter) ,
109
+ Style :: Json => json:: post:: show_post_comment ( comment_iter) . into_ok ( ) ,
110
110
}
111
111
}
112
112
@@ -153,7 +153,7 @@ pub fn list_news(
153
153
match style {
154
154
Style :: Colorful => colorful:: news:: list_news ( time_style, news_iter) ,
155
155
Style :: Normal => normal:: news:: list_news ( time_style, news_iter) ,
156
- Style :: Json => json:: news:: list_news ( news_iter) ,
156
+ Style :: Json => json:: news:: list_news ( news_iter) . into_ok ( ) ,
157
157
}
158
158
}
159
159
@@ -165,6 +165,6 @@ pub fn list_fav(
165
165
match style {
166
166
Style :: Colorful => colorful:: fav:: list_fav ( time_style, fav_iter) ,
167
167
Style :: Normal => normal:: fav:: list_fav ( time_style, fav_iter) ,
168
- Style :: Json => json:: fav:: list_fav ( fav_iter) ,
168
+ Style :: Json => json:: fav:: list_fav ( fav_iter) . into_ok ( ) ,
169
169
}
170
170
}
0 commit comments