From 45521d0c738d95b6309771b666b6ebcc8b8658c6 Mon Sep 17 00:00:00 2001 From: Till Wegmueller Date: Sun, 3 Aug 2025 14:36:36 +0200 Subject: [PATCH] Update `RestBackend` documentation example for `download_catalog` changes - Include `ReadableRepository` and `WritableRepository` imports in the example. - Update the `download_catalog` method to reflect the new optional parameter. --- libips/src/repository/rest_backend.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libips/src/repository/rest_backend.rs b/libips/src/repository/rest_backend.rs index 7a2f06d..a5dfd97 100644 --- a/libips/src/repository/rest_backend.rs +++ b/libips/src/repository/rest_backend.rs @@ -29,6 +29,7 @@ use super::catalog::CatalogManager; /// /// ```no_run /// use libips::repository::RestBackend; +/// use libips::repository::{ReadableRepository, WritableRepository}; /// use std::path::Path; /// /// // Open a connection to a remote repository @@ -41,7 +42,7 @@ use super::catalog::CatalogManager; /// repo.add_publisher("openindiana.org").unwrap(); /// /// // Download catalog files for the publisher -/// repo.download_catalog("openindiana.org").unwrap(); +/// repo.download_catalog("openindiana.org", None).unwrap(); /// ``` pub struct RestBackend { /// The base URI of the repository