Skip to content

Commit e112cac

Browse files
committed
Address Copilot review
1 parent 1f58905 commit e112cac

4 files changed

Lines changed: 5 additions & 3 deletions

File tree

gix-commitgraph/src/file/init.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ impl File {
153153
if oid_lookup_count != fan[255] {
154154
return Err(message!("Commit-graph {OID_FAN_CHUNK_ID:?} chunk contains {chunk1_commits} commits, but {OID_LOOKUP_CHUNK_ID:?} chunk contains {chunk2_commits} commits",
155155
chunk1_commits = fan[255],
156-
chunk2_commits= oid_lookup_count,
156+
chunk2_commits = oid_lookup_count,
157157
).raise());
158158
}
159159
if commit_data_count != fan[255] {

gix-commitgraph/src/init.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ impl Graph {
3333
let graph_file_path = commit_graphs_dir.join(format!("graph-{hash}.graph"));
3434
files.push(
3535
File::at(&graph_file_path)
36-
.or_raise(|| message!("Could not open commit-graph file at '{}'", chain_file_path.display()))?,
36+
.or_raise(|| message!("Could not open commit-graph file at '{}'", graph_file_path.display()))?,
3737
);
3838
}
3939
Ok(Self::new(files)?)

gix-error/src/exn/impls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ impl<E: Error + Send + Sync + 'static> Exn<E> {
191191
}
192192

193193
/// Iterate over all frames and find one that downcasts into error of type `T`.
194-
/// Note that the search includes this instance as ell.
194+
/// Note that the search includes this instance as well.
195195
pub fn downcast_any_ref<T: Error + 'static>(&self) -> Option<&T> {
196196
self.iter().find_map(|e| e.downcast())
197197
}

gix-error/src/message.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ impl From<&'static str> for Message {
3737
}
3838

3939
/// Return a new statically allocated `message`.
40+
///
41+
/// Use the [message!-macro](crate::message!) for convenient `format!`-like behavior.
4042
pub fn message(message: &'static str) -> Message {
4143
Message::new(message)
4244
}

0 commit comments

Comments
 (0)