Skip to content

Commit 5722e3a

Browse files
authored
Merge pull request #1314 from avoidalone/main
chore: remove repetitive words
2 parents 9e9b9fe + 39879af commit 5722e3a

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

gix-command/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ pub struct Prepare {
5252
pub struct Context {
5353
/// The `.git` directory that contains the repository.
5454
///
55-
/// If set, it will be used to set the the `GIT_DIR` environment variable.
55+
/// If set, it will be used to set the `GIT_DIR` environment variable.
5656
pub git_dir: Option<PathBuf>,
5757
/// Set the `GIT_WORK_TREE` environment variable with the given path.
5858
pub worktree_dir: Option<PathBuf>,

gix-commitgraph/tests/access/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ fn single_commit_future_64bit_dates_work() {
4747
assert_eq!(
4848
actual.committer_timestamp(),
4949
info.time.seconds.try_into().expect("timestamps in bound"),
50-
"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"
50+
"this is close the highest representable value in the graph, like year 2500, so we are good for longer than I should care about"
5151
);
5252
assert_eq!(actual.generation(), 1);
5353
}

gix-pack/src/cache/lru.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ mod _static {
133133
if data.len() > self.mem_limit {
134134
return;
135135
}
136-
// If we could hold it but are are at limit, all we can do is make space.
136+
// If we could hold it but are at limit, all we can do is make space.
137137
let mem_free = self.mem_limit - self.mem_used;
138138
if data.len() > mem_free {
139139
// prefer freeing free-lists instead of clearing our cache

gix-packetline/src/decode.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use crate::{PacketLineRef, DELIMITER_LINE, FLUSH_LINE, MAX_DATA_LEN, MAX_LINE_LE
88
pub enum Error {
99
#[error("Failed to decode the first four hex bytes indicating the line length: {err}")]
1010
HexDecode { err: String },
11-
#[error("The data received claims to be larger than than the maximum allowed size: got {length_in_bytes}, exceeds {MAX_DATA_LEN}")]
11+
#[error("The data received claims to be larger than the maximum allowed size: got {length_in_bytes}, exceeds {MAX_DATA_LEN}")]
1212
DataLengthLimitExceeded { length_in_bytes: usize },
1313
#[error("Received an invalid empty line")]
1414
DataIsEmpty,

gix-packetline/tests/decode/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ mod streaming {
103103
fn error_on_oversized_line() {
104104
assert_err_display(
105105
streaming(b"ffff"),
106-
"The data received claims to be larger than than the maximum allowed size: got 65535, exceeds 65516",
106+
"The data received claims to be larger than the maximum allowed size: got 65535, exceeds 65516",
107107
);
108108
}
109109

0 commit comments

Comments
 (0)