all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH proxmox-backup] api-types: doc: add crate to `Display` trait in comments
@ 2022-06-29  8:55 Stefan Sterz
  2022-06-30  8:16 ` [pbs-devel] applied: " Wolfgang Bumiller
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Sterz @ 2022-06-29  8:55 UTC (permalink / raw)
  To: pbs-devel

when creating the documentation (e.g. `cargo doc --open`), it would
warn that `Display` is not in scope.

Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
---
 pbs-api-types/src/datastore.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pbs-api-types/src/datastore.rs b/pbs-api-types/src/datastore.rs
index 86201b8e..70b639ea 100644
--- a/pbs-api-types/src/datastore.rs
+++ b/pbs-api-types/src/datastore.rs
@@ -579,7 +579,7 @@ impl BackupNamespace {
         Ok(())
     }
 
-    /// Return an adapter which [`Display`]s as a path with `"ns/"` prefixes in front of every
+    /// Return an adapter which [`fmt::Display`]s as a path with `"ns/"` prefixes in front of every
     /// component.
     pub fn display_as_path(&self) -> BackupNamespacePath {
         BackupNamespacePath(self)
@@ -691,7 +691,7 @@ impl ApiType for BackupNamespace {
 
 /// Helper to format a [`BackupNamespace`] as a path component of a [`BackupGroup`].
 ///
-/// This implements [`Display`] such that it includes the `ns/` subdirectory prefix in front of
+/// This implements [`fmt::Display`] such that it includes the `ns/` subdirectory prefix in front of
 /// every component.
 pub struct BackupNamespacePath<'a>(&'a BackupNamespace);
 
-- 
2.30.2





^ permalink raw reply	[flat|nested] 2+ messages in thread

* [pbs-devel] applied: [PATCH proxmox-backup] api-types: doc: add crate to `Display` trait in comments
  2022-06-29  8:55 [pbs-devel] [PATCH proxmox-backup] api-types: doc: add crate to `Display` trait in comments Stefan Sterz
@ 2022-06-30  8:16 ` Wolfgang Bumiller
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Bumiller @ 2022-06-30  8:16 UTC (permalink / raw)
  To: Stefan Sterz; +Cc: pbs-devel

applied, thanks

On Wed, Jun 29, 2022 at 10:55:38AM +0200, Stefan Sterz wrote:
> when creating the documentation (e.g. `cargo doc --open`), it would
> warn that `Display` is not in scope.
> 
> Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
> ---
>  pbs-api-types/src/datastore.rs | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/pbs-api-types/src/datastore.rs b/pbs-api-types/src/datastore.rs
> index 86201b8e..70b639ea 100644
> --- a/pbs-api-types/src/datastore.rs
> +++ b/pbs-api-types/src/datastore.rs
> @@ -579,7 +579,7 @@ impl BackupNamespace {
>          Ok(())
>      }
>  
> -    /// Return an adapter which [`Display`]s as a path with `"ns/"` prefixes in front of every
> +    /// Return an adapter which [`fmt::Display`]s as a path with `"ns/"` prefixes in front of every
>      /// component.
>      pub fn display_as_path(&self) -> BackupNamespacePath {
>          BackupNamespacePath(self)
> @@ -691,7 +691,7 @@ impl ApiType for BackupNamespace {
>  
>  /// Helper to format a [`BackupNamespace`] as a path component of a [`BackupGroup`].
>  ///
> -/// This implements [`Display`] such that it includes the `ns/` subdirectory prefix in front of
> +/// This implements [`fmt::Display`] such that it includes the `ns/` subdirectory prefix in front of
>  /// every component.
>  pub struct BackupNamespacePath<'a>(&'a BackupNamespace);
>  
> -- 
> 2.30.2




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-06-30  8:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-29  8:55 [pbs-devel] [PATCH proxmox-backup] api-types: doc: add crate to `Display` trait in comments Stefan Sterz
2022-06-30  8:16 ` [pbs-devel] applied: " Wolfgang Bumiller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal