@@ -47,10 +47,9 @@ pub fn list_ing(ing_list: &[(IngEntry, Vec<IngCommentEntry>)], rev: bool) {
47
47
print ! ( "{}" , create_time) ;
48
48
if ing. is_lucky {
49
49
let star_text = ing_star_tag_to_text ( & ing. icons ) ;
50
- print ! ( " {}" , star_text) ;
51
- print ! ( "{}" , "⭐" ) ;
50
+ print ! ( " {}⭐" , star_text) ;
52
51
}
53
- println ! ( " {} {}" , "# ", ing. id. to_string( ) ) ;
52
+ println ! ( " # {}" , ing. id. to_string( ) ) ;
54
53
let content = fmt_content ( & ing. content ) ;
55
54
println ! ( " {}: {}" , ing. user_name, content) ;
56
55
@@ -65,7 +64,7 @@ pub fn list_ing(ing_list: &[(IngEntry, Vec<IngCommentEntry>)], rev: bool) {
65
64
}
66
65
let at_user = get_ing_at_user_tag_text ( & entry. content ) ;
67
66
if at_user. is_empty ( ) . not ( ) {
68
- print ! ( " {}{}" , "@ ", at_user) ;
67
+ print ! ( " @{} " , at_user) ;
69
68
}
70
69
let content = {
71
70
let content = rm_ing_at_user_tag ( & entry. content ) ;
@@ -124,15 +123,15 @@ pub fn show_post_meta(entry: &PostEntry) -> Result<()> {
124
123
pub fn list_post ( entry_list : & [ PostEntry ] , total_count : usize , rev : bool ) {
125
124
println ! ( "{}/{}" , entry_list. len( ) , total_count) ;
126
125
entry_list. iter ( ) . dyn_rev ( rev) . for_each ( |entry| {
127
- print ! ( "{} {}" , "# ", entry. id. to_string( ) ) ;
126
+ print ! ( "# {}" , entry. id. to_string( ) ) ;
128
127
print ! ( " {}" , entry. title) ;
129
128
if entry. is_published {
130
- print ! ( " {}" , " Pub") ;
129
+ print ! ( " Pub" ) ;
131
130
} else {
132
- print ! ( " {}" , " Dft") ;
131
+ print ! ( " Dft" ) ;
133
132
}
134
133
if entry. is_pinned {
135
- print ! ( " {}" , " Pin") ;
134
+ print ! ( " Pin" ) ;
136
135
}
137
136
println ! ( )
138
137
} ) ;
0 commit comments