This commit is contained in:
Wojciech Kozlowski 2024-10-06 10:05:23 +02:00
parent b01af5ff18
commit 029af582d6

View File

@ -49,13 +49,6 @@ pub struct Paged<T> {
pub next: NextPage, pub next: NextPage,
} }
// pub fn map<U, F: FnOnce(T) -> U>(self, op: F) -> Result<U, E> {
// match self {
// Ok(t) => Ok(op(t)),
// Err(e) => Err(e),
// }
// }
impl<T> Paged<T> { impl<T> Paged<T> {
pub fn map_paged_result<E, U, F: FnOnce(T) -> U>( pub fn map_paged_result<E, U, F: FnOnce(T) -> U>(
result: Result<Paged<T>, E>, result: Result<Paged<T>, E>,