fix typos and release checklist
This commit is contained in:
@@ -45,7 +45,7 @@ impl Backend for Rust {
|
||||
|
||||
let json: Value =
|
||||
serde_json::from_str(&content).context("parsing JSON from crates file")?;
|
||||
extract_packages(&json).context("extracing packages from crates file")
|
||||
extract_packages(&json).context("extracting packages from crates file")
|
||||
}
|
||||
|
||||
fn get_explicitly_installed_packages(&self) -> Result<HashSet<Package>> {
|
||||
|
||||
@@ -114,7 +114,7 @@ pub trait Backend: Debug {
|
||||
///
|
||||
/// # Panics
|
||||
///
|
||||
/// This method shall panic when the backend does not support depedent packages.
|
||||
/// This method shall panic when the backend does not support dependent packages.
|
||||
fn make_dependency(&self, packages: &[Package]) -> Result<()> {
|
||||
let mut cmd = Command::new(self.get_binary());
|
||||
cmd.args(self.get_switches_make_dependency());
|
||||
|
||||
@@ -57,7 +57,7 @@ impl Config {
|
||||
if e.kind() == ErrorKind::NotFound {
|
||||
bail!(crate::Error::ConfigFileNotFound)
|
||||
}
|
||||
bail!("unexpected error occured: {e:?}");
|
||||
bail!("unexpected error occurred: {e:?}");
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
use std::fmt::{Display, Write};
|
||||
use std::hash::Hash;
|
||||
|
||||
/// A struct to represent a single package, consiting of a `name`, and
|
||||
/// A struct to represent a single package, consisting of a `name`, and
|
||||
/// optionally a `repo`.
|
||||
#[derive(Debug, Eq, PartialOrd, Ord, Clone)]
|
||||
pub struct Package {
|
||||
|
||||
@@ -27,7 +27,7 @@ mod register;
|
||||
use proc_macro::TokenStream;
|
||||
|
||||
/// Derive (1) an iterator over the variants, (2) imports for the individual backends, and (3)
|
||||
/// instatiation code for each backend.
|
||||
/// instantiationn code for each backend.
|
||||
#[proc_macro_derive(Register)]
|
||||
pub fn register(input: TokenStream) -> TokenStream {
|
||||
register::register(input)
|
||||
|
||||
Reference in New Issue
Block a user