Skip to content

Commit 9c9305e

Browse files
committed
Fix indentation in documentation of callbacks.
1 parent 08c18ed commit 9c9305e

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/remote_callbacks.rs

+12-12
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ pub type PushUpdateReference<'a> = dyn FnMut(&str, Option<&str>) -> Result<(), E
7676
/// Callback for push transfer progress
7777
///
7878
/// Parameters:
79-
/// * current
80-
/// * total
81-
/// * bytes
79+
/// * current
80+
/// * total
81+
/// * bytes
8282
pub type PushTransferProgress<'a> = dyn FnMut(usize, usize, usize) + 'a;
8383

8484
/// Callback for pack progress
@@ -87,9 +87,9 @@ pub type PushTransferProgress<'a> = dyn FnMut(usize, usize, usize) + 'a;
8787
/// so performance may be affected.
8888
///
8989
/// Parameters:
90-
/// * stage
91-
/// * current
92-
/// * total
90+
/// * stage
91+
/// * current
92+
/// * total
9393
pub type PackProgress<'a> = dyn FnMut(PackBuilderStage, usize, usize) + 'a;
9494

9595
/// The callback is called once between the negotiation step and the upload.
@@ -209,9 +209,9 @@ impl<'a> RemoteCallbacks<'a> {
209209
/// The callback through which progress of push transfer is monitored
210210
///
211211
/// Parameters:
212-
/// * current
213-
/// * total
214-
/// * bytes
212+
/// * current
213+
/// * total
214+
/// * bytes
215215
pub fn push_transfer_progress<F>(&mut self, cb: F) -> &mut RemoteCallbacks<'a>
216216
where
217217
F: FnMut(usize, usize, usize) + 'a,
@@ -226,9 +226,9 @@ impl<'a> RemoteCallbacks<'a> {
226226
/// so performance may be affected.
227227
///
228228
/// Parameters:
229-
/// * stage
230-
/// * current
231-
/// * total
229+
/// * stage
230+
/// * current
231+
/// * total
232232
pub fn pack_progress<F>(&mut self, cb: F) -> &mut RemoteCallbacks<'a>
233233
where
234234
F: FnMut(PackBuilderStage, usize, usize) + 'a,

0 commit comments

Comments
 (0)