[pbs-devel] [PATCH backup 4/4] fs: update comment to reflect usage of C-string literals

Maximiliano Sandoval m.sandoval at proxmox.com
Thu Jun 20 11:00:08 CEST 2024


Signed-off-by: Maximiliano Sandoval <m.sandoval at proxmox.com>
---
 src/tools/fs.rs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/tools/fs.rs b/src/tools/fs.rs
index 4eab0d56..78ecc3b8 100644
--- a/src/tools/fs.rs
+++ b/src/tools/fs.rs
@@ -13,8 +13,8 @@ pub async fn fs_info(path: PathBuf) -> Result<proxmox_sys::fs::FileSystemInforma
 
 /// `proxmox_sys::fs::fs_into` wrapped in a `spawn_blocking` call.
 ///
-/// We cannot use `&'static CStr` in the above as we get from `proxmox_lang::c_str!` because
-/// `NixPath` is only implemented directly on `CStr`, not on `&CStr`.
+/// We cannot use `&'static CStr` in the above as we get from a C-string literal
+/// because `NixPath` is only implemented directly on `CStr`, not on `&CStr`.
 pub async fn fs_info_static(
     path: &'static CStr,
 ) -> Result<proxmox_sys::fs::FileSystemInformation, Error> {
-- 
2.39.2





More information about the pbs-devel mailing list