Skip to content
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
6 changes: 6 additions & 0 deletions .github/workflows/workspace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,9 @@ jobs:
toolchain: stable
components: rustfmt
- run: cargo fmt --all -- --check

typos:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: crate-ci/typos@v1
4 changes: 4 additions & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[files]
extend-exclude = [
".git/"
]
2 changes: 1 addition & 1 deletion blobby/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ git-flavored [variable-length quantity][0] (VLQ) for encoding unsigned
numbers.

File starts with a number of de-duplicated blobs `d`. It followed by `d`
entries. Each entry starts with an integer `m`, immediately folowed by `m`
entries. Each entry starts with an integer `m`, immediately followed by `m`
bytes representing de-duplicated binary blob.

Next follows unspecified number of entries representing sequence of stored
Expand Down
2 changes: 1 addition & 1 deletion fiat-constify/src/type_registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl TypeRegistry {

/// Get the [`Type`] which the identifier is.
///
/// Returns `None` whe ident can't be found.
/// Returns `None` when ident can't be found.
pub fn get(&self, ident: &Ident) -> Option<Type> {
self.0.get(ident).copied()
}
Expand Down
2 changes: 1 addition & 1 deletion hex-literal/tests/basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fn empty() {
#[test]
fn upper_case() {
assert_eq!(hex!("AE DF 04 B2"), [0xae, 0xdf, 0x04, 0xb2]);
assert_eq!(hex!("FF BA 8C 00 01"), [0xff, 0xba, 0x8c, 0x00, 0x01]);
assert_eq!(hex!("FF BE 8C 00 01"), [0xff, 0xbe, 0x8c, 0x00, 0x01]);
}

#[test]
Expand Down
2 changes: 1 addition & 1 deletion inout/src/reserved.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ impl<T> InOutBufReserved<'_, '_, T> {
}

/// Split buffer into `InOutBuf` with input length and mutable slice pointing to
/// the reamining reserved suffix.
/// the remaining reserved suffix.
pub fn split_reserved(&mut self) -> (InOutBuf<'_, '_, T>, &mut [T]) {
let in_len = self.get_in_len();
let out_len = self.get_out_len();
Expand Down
2 changes: 1 addition & 1 deletion opaque-debug/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
//! assert_eq!(format!("{:?}", val), "CryptoStuff { ... }")
//! ```
//!
//! The macro also support generic paramters:
//! The macro also support generic parameters:
//! ```
//! pub struct GenericCryptoStuff<K> {
//! key: K,
Expand Down
4 changes: 2 additions & 2 deletions zeroize/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ NOTE: yanked because [#900] bumped MSRV to 1.60, which vioates our MSRV policy.

## 1.5.4 (2022-03-16)
### Added
- Nightly-only upport for zeroizing ARM64 SIMD registers ([#749])
- Nightly-only support for zeroizing ARM64 SIMD registers ([#749])

[#749]: https://github.com/RustCrypto/utils/pull/749

Expand Down Expand Up @@ -220,7 +220,7 @@ are deriving `Zeroize`.
- Bound blanket array impls on `Zeroize` instead of `DefaultIsZeroes`
- Require `zeroize(drop)` or `zeroize(no_drop)` attributes when deriving
`Zeroize` .
- Support stablized 'alloc' crate
- Support stabilized 'alloc' crate

## 0.8.0 (2019-05-20)
- Impl `Drop` by default when deriving `Zeroize`
Expand Down
4 changes: 2 additions & 2 deletions zeroize/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ where
// Ensures self is None and that the value was dropped. Without the take, the drop
// of the (zeroized) value isn't called, which might lead to a leak or other
// unexpected behavior. For example, if this were Option<Vec<T>>, the above call to
// zeroize would not free the allocated memory, but the the `take` call will.
// zeroize would not free the allocated memory, but the `take` call will.
self.take();
}

Expand Down Expand Up @@ -617,7 +617,7 @@ impl Zeroize for CString {
}
}

/// `Zeroizing` is a a wrapper for any `Z: Zeroize` type which implements a
/// `Zeroizing` is a wrapper for any `Z: Zeroize` type which implements a
/// `Drop` handler which zeroizes dropped values.
#[derive(Debug, Default, Eq, PartialEq)]
pub struct Zeroizing<Z: Zeroize>(Z);
Expand Down
Loading