Skip to content

Commit

Permalink
Wow, I sure love to forget pub on methods of util types~!
Browse files Browse the repository at this point in the history
  • Loading branch information
nfagerlund committed Mar 22, 2024
1 parent 70f01fe commit 894e462
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/mod.rs
Expand Up @@ -50,7 +50,7 @@ pub struct ListMeta {
}

impl ListMeta {
fn to_pagination(&self) -> Pagination {
pub fn to_pagination(&self) -> Pagination {
let total_pages = self.count.div_ceil(self.size);
// page 0 isn't a thing:
let current_page = self.page.max(1);
Expand Down

0 comments on commit 894e462

Please sign in to comment.