From 2ec6f86f633282a249e55779c401ef2027208d95 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Tue, 7 Jun 2022 09:22:45 +0200 Subject: [PATCH] tree wide: typo fixes through codespell Signed-off-by: Thomas Lamprecht --- pbs-api-types/src/datastore.rs | 2 +- pbs-api-types/src/human_byte.rs | 2 +- pbs-api-types/src/traffic_control.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pbs-api-types/src/datastore.rs b/pbs-api-types/src/datastore.rs index bb20e149..86201b8e 100644 --- a/pbs-api-types/src/datastore.rs +++ b/pbs-api-types/src/datastore.rs @@ -470,7 +470,7 @@ impl BackupNamespace { Ok(child) } - /// Pop one level off the namespace hierachy + /// Pop one level off the namespace hierarchy pub fn pop(&mut self) -> Option { let dropped = self.inner.pop(); if let Some(ref dropped) = dropped { diff --git a/pbs-api-types/src/human_byte.rs b/pbs-api-types/src/human_byte.rs index 9e1a1893..532632c8 100644 --- a/pbs-api-types/src/human_byte.rs +++ b/pbs-api-types/src/human_byte.rs @@ -69,7 +69,7 @@ impl SizeUnit { } } -/// Returns the string repesentation +/// Returns the string representation impl std::fmt::Display for SizeUnit { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { match self { diff --git a/pbs-api-types/src/traffic_control.rs b/pbs-api-types/src/traffic_control.rs index d29f18b4..3ed579cf 100644 --- a/pbs-api-types/src/traffic_control.rs +++ b/pbs-api-types/src/traffic_control.rs @@ -113,7 +113,7 @@ pub struct TrafficControlRule { #[serde(flatten)] pub limit: RateLimitConfig, // fixme: expose this? - // /// Bandwidth is shared accross all connections + // /// Bandwidth is shared across all connections // #[serde(skip_serializing_if="Option::is_none")] // pub shared: Option, /// Enable the rule at specific times