diff --git a/crates/cli/src/issue_printer.rs b/crates/cli/src/issue_printer.rs index ff372b8..81d6c01 100644 --- a/crates/cli/src/issue_printer.rs +++ b/crates/cli/src/issue_printer.rs @@ -23,7 +23,7 @@ impl Sink for Stderr { item: ResolutionError, ) -> Result<(), Self::Error> { let ResolutionError { url, error } = item; - eprintln!("An error occured during resolution at {url}: {error}"); + eprintln!("An error occurred during resolution at {url}: {error}"); Ok(()) } diff --git a/crates/cli/src/selector.rs b/crates/cli/src/selector.rs index 2c14192..80112af 100644 --- a/crates/cli/src/selector.rs +++ b/crates/cli/src/selector.rs @@ -2,7 +2,7 @@ use humanode_distribution_schema::manifest::Package; -/// Package selector that's optimizied for the CLI experience. +/// Package selector that's optimized for the CLI experience. pub struct Selector { /// The package display name, optional. pub package_display_name: Option, diff --git a/crates/config/src/load.rs b/crates/config/src/load.rs index 1549433..73a47ae 100644 --- a/crates/config/src/load.rs +++ b/crates/config/src/load.rs @@ -11,7 +11,7 @@ use crate::Sources; pub struct SourcesLoadingResult { /// The loaded sources. pub sources: Sources, - /// The errors that have occured while loading the sources. + /// The errors that have occurred while loading the sources. pub errors: SourcesLoadingErrors, } @@ -25,7 +25,7 @@ pub struct SourcesLoadingErrors { } impl SourcesLoadingErrors { - /// Returns `true` if no errors have occured. + /// Returns `true` if no errors have occurred. pub fn is_empty(&self) -> bool { self.manifest_urls.is_empty() && self.repo_urls.is_empty() } @@ -39,12 +39,12 @@ impl SourcesLoadingErrors { impl std::fmt::Display for SourcesLoadingErrors { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { if self.is_empty() { - f.write_str("no errors occured while loading the source configs") + f.write_str("no errors occurred while loading the source configs") } else { let errors_num = self.manifest_urls.len() + self.repo_urls.len(); write!( f, - "{errors_num} errors have occured while loading the source configs" + "{errors_num} errors have occurred while loading the source configs" ) } } diff --git a/crates/resolver/src/resolve.rs b/crates/resolver/src/resolve.rs index afff8fe..51bfad4 100644 --- a/crates/resolver/src/resolve.rs +++ b/crates/resolver/src/resolve.rs @@ -11,7 +11,7 @@ use serde::{Deserialize, Serialize}; use crate::http::load_meta; -/// An issue that occured during resolution. +/// An issue that occurred during resolution. #[derive(Debug)] pub struct ResolutionError { /// The URL that was attempted. diff --git a/crates/schema/src/manifest.rs b/crates/schema/src/manifest.rs index 5f8e445..02d703d 100644 --- a/crates/schema/src/manifest.rs +++ b/crates/schema/src/manifest.rs @@ -65,13 +65,13 @@ pub struct Arch(pub String); /// Relative path in the context of the file system of the distribution. /// /// Must be evaludated relative to the directory of the distribution root, or -/// in the context where the ditribution root is the process' current directory. +/// in the context where the distribution root is the process' current directory. #[derive(Debug, Serialize, Deserialize)] pub struct LocalPath(pub String); /// The URL. /// -/// Have to evaluted against the Manifest URL using the Base URL algorithm, +/// Have to evaluated against the Manifest URL using the Base URL algorithm, /// see . #[derive(Debug, Serialize, Deserialize)] pub struct Url(pub String); diff --git a/deny.toml b/deny.toml index 9275d93..2f9c764 100644 --- a/deny.toml +++ b/deny.toml @@ -162,11 +162,11 @@ wildcards = "allow" # * all - Both lowest-version and simplest-path are used highlight = "all" # The default lint level for `default` features for crates that are members of -# the workspace that is being checked. This can be overriden by allowing/denying +# the workspace that is being checked. This can be overridden by allowing/denying # `default` on a crate-by-crate basis if desired. workspace-default-features = "allow" # The default lint level for `default` features for external crates that are not -# members of the workspace. This can be overriden by allowing/denying `default` +# members of the workspace. This can be overridden by allowing/denying `default` # on a crate-by-crate basis if desired. external-default-features = "allow" # List of crates that are allowed. Use with care!