Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #92

Merged
merged 1 commit into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/cli/src/issue_printer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ impl Sink<ResolutionError> 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(())
}

Expand Down
2 changes: 1 addition & 1 deletion crates/cli/src/selector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>,
Expand Down
8 changes: 4 additions & 4 deletions crates/config/src/load.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

Expand All @@ -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()
}
Expand All @@ -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"
)
}
}
Expand Down
2 changes: 1 addition & 1 deletion crates/resolver/src/resolve.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions crates/schema/src/manifest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://developer.mozilla.org/en-US/docs/Web/API/URL/URL>.
#[derive(Debug, Serialize, Deserialize)]
pub struct Url(pub String);
Expand Down
4 changes: 2 additions & 2 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down
Loading