Skip to content

Commit

Permalink
Merge pull request #26 from jetli/hotfix/upgrade_yew_0_18
Browse files Browse the repository at this point in the history
Fix clippy
  • Loading branch information
jetli authored Nov 17, 2021
2 parents 87211a2 + a6726a3 commit c34d2b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/conduit-wasm/src/components/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl Component for Header {
</RouterAnchor<AppRoute>>
{
if let Some(user_info) = &self.props.current_user {
self.logged_in_view(&user_info)
self.logged_in_view(user_info)
} else {
self.logged_out_view()
}
Expand Down
3 changes: 1 addition & 2 deletions crates/conduit-wasm/src/components/list_pagination.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,13 @@ impl Component for ListPagination {
} else {
"page-item"
};
let page = page.clone();
let page = *page;
let onclick = self.link.callback(move |ev: MouseEvent| {ev.prevent_default(); Msg::PaginationChanged(page)});
html! {
<li
class=page_item_class
onclick=onclick>
<a class="page-link" href="">{page + 1}</a>

</li>
}
})}
Expand Down

0 comments on commit c34d2b8

Please sign in to comment.