Code is only used there.
Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
use proxmox_lang::c_str;
use pbs_datastore::catalog::BackupCatalogWriter;
-use pbs_tools::str::strip_ascii_whitespace;
use crate::pxar::metadata::errno_is_unsupported;
use crate::pxar::Flags;
Ok(fs_stat.f_type)
}
+fn strip_ascii_whitespace(line: &[u8]) -> &[u8] {
+ let line = match line.iter().position(|&b| !b.is_ascii_whitespace()) {
+ Some(n) => &line[n..],
+ None => return &[],
+ };
+ match line.iter().rev().position(|&b| !b.is_ascii_whitespace()) {
+ Some(n) => &line[..(line.len() - n)],
+ None => &[],
+ }
+}
+
#[rustfmt::skip]
pub fn is_virtual_file_system(magic: i64) -> bool {
use proxmox_sys::linux::magic::*;
pub mod nom;
pub mod percent_encoding;
pub mod sha;
-pub mod str;
pub mod sync;
pub mod ticket;
+++ /dev/null
-//! String related utilities.
-
-pub fn strip_ascii_whitespace(line: &[u8]) -> &[u8] {
- let line = match line.iter().position(|&b| !b.is_ascii_whitespace()) {
- Some(n) => &line[n..],
- None => return &[],
- };
- match line.iter().rev().position(|&b| !b.is_ascii_whitespace()) {
- Some(n) => &line[..(line.len() - n)],
- None => &[],
- }
-}