From 39879af6eaf2bf4fe159a5c6371c98d516c4febe Mon Sep 17 00:00:00 2001 From: avoidalone Date: Mon, 11 Mar 2024 15:23:03 +0800 Subject: [PATCH] chore: remove repetitive words Signed-off-by: avoidalone --- gix-command/src/lib.rs | 2 +- gix-commitgraph/tests/access/mod.rs | 2 +- gix-pack/src/cache/lru.rs | 2 +- gix-packetline/src/decode.rs | 2 +- gix-packetline/tests/decode/mod.rs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gix-command/src/lib.rs b/gix-command/src/lib.rs index b1bcd87e881..87759b472dc 100644 --- a/gix-command/src/lib.rs +++ b/gix-command/src/lib.rs @@ -52,7 +52,7 @@ pub struct Prepare { pub struct Context { /// The `.git` directory that contains the repository. /// - /// If set, it will be used to set the the `GIT_DIR` environment variable. + /// If set, it will be used to set the `GIT_DIR` environment variable. pub git_dir: Option, /// Set the `GIT_WORK_TREE` environment variable with the given path. pub worktree_dir: Option, diff --git a/gix-commitgraph/tests/access/mod.rs b/gix-commitgraph/tests/access/mod.rs index 12d7c2e6af5..914ef3af4ec 100644 --- a/gix-commitgraph/tests/access/mod.rs +++ b/gix-commitgraph/tests/access/mod.rs @@ -47,7 +47,7 @@ fn single_commit_future_64bit_dates_work() { assert_eq!( actual.committer_timestamp(), info.time.seconds.try_into().expect("timestamps in bound"), - "this is close the the highest representable value in the graph, like year 2500, so we are good for longer than I should care about" + "this is close the highest representable value in the graph, like year 2500, so we are good for longer than I should care about" ); assert_eq!(actual.generation(), 1); } diff --git a/gix-pack/src/cache/lru.rs b/gix-pack/src/cache/lru.rs index 4eef90306a1..f670037261d 100644 --- a/gix-pack/src/cache/lru.rs +++ b/gix-pack/src/cache/lru.rs @@ -133,7 +133,7 @@ mod _static { if data.len() > self.mem_limit { return; } - // If we could hold it but are are at limit, all we can do is make space. + // If we could hold it but are at limit, all we can do is make space. let mem_free = self.mem_limit - self.mem_used; if data.len() > mem_free { // prefer freeing free-lists instead of clearing our cache diff --git a/gix-packetline/src/decode.rs b/gix-packetline/src/decode.rs index 35d2b5149ac..66dec96becb 100644 --- a/gix-packetline/src/decode.rs +++ b/gix-packetline/src/decode.rs @@ -8,7 +8,7 @@ use crate::{PacketLineRef, DELIMITER_LINE, FLUSH_LINE, MAX_DATA_LEN, MAX_LINE_LE pub enum Error { #[error("Failed to decode the first four hex bytes indicating the line length: {err}")] HexDecode { err: String }, - #[error("The data received claims to be larger than than the maximum allowed size: got {length_in_bytes}, exceeds {MAX_DATA_LEN}")] + #[error("The data received claims to be larger than the maximum allowed size: got {length_in_bytes}, exceeds {MAX_DATA_LEN}")] DataLengthLimitExceeded { length_in_bytes: usize }, #[error("Received an invalid empty line")] DataIsEmpty, diff --git a/gix-packetline/tests/decode/mod.rs b/gix-packetline/tests/decode/mod.rs index 64d6d9cdde9..ec15d7a638a 100644 --- a/gix-packetline/tests/decode/mod.rs +++ b/gix-packetline/tests/decode/mod.rs @@ -103,7 +103,7 @@ mod streaming { fn error_on_oversized_line() { assert_err_display( streaming(b"ffff"), - "The data received claims to be larger than than the maximum allowed size: got 65535, exceeds 65516", + "The data received claims to be larger than the maximum allowed size: got 65535, exceeds 65516", ); }