File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ pub fn Tags(props: &Props) -> Html {
3535 href=""
3636 class="tag-default tag-pill"
3737 { onclick} >
38- { & * tag }
38+ { tag }
3939 </a>
4040 }
4141 } ) }
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ pub fn ArticlePreview(props: &Props) -> Html {
9797 { for article. tag_list. iter( ) . map( |tag| {
9898 html! {
9999 <li class="tag-default tag-pill tag-outline" key={ ( & tag) . to_string( ) } >
100- { & * tag }
100+ { tag }
101101 </li>
102102 }
103103 } ) }
Original file line number Diff line number Diff line change @@ -34,11 +34,8 @@ pub fn UserContextProvider(props: &Props) -> Html {
3434 user_ctx. set ( user_info. user . clone ( ) ) ;
3535 }
3636
37- if let Some ( error) = & current_user. error {
38- match error {
39- Error :: Unauthorized | Error :: Forbidden => set_token ( None ) ,
40- _ => ( ) ,
41- }
37+ if let Some ( Error :: Unauthorized | Error :: Forbidden ) = & current_user. error {
38+ set_token ( None ) ;
4239 }
4340 || ( )
4441 } )
You can’t perform that action at this time.
0 commit comments