Skip to content

Commit 9c40704

Browse files
committed
feat(api): shorten a method name
1 parent b8651d9 commit 9c40704

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/app/sub.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ where
142142
.expect("convert all names from raw string to UTF-8");
143143
let shared = deduplication_record
144144
.map_err(HardlinksHandler::convert_error)?
145-
.pipe(HardlinksHandler::serializable_report)?
145+
.pipe(HardlinksHandler::json_report)?
146146
.unwrap_or_default();
147147
let json_tree = JsonTree { tree, shared };
148148
let json_data = JsonData {
@@ -181,7 +181,7 @@ pub trait HardlinkSubroutines<Size: size::Size>: DeduplicateSharedSize<Size> {
181181
bytes_format: Size::DisplayFormat,
182182
) -> Result<(), RuntimeError>;
183183
/// Create a JSON serializable object from the report.
184-
fn serializable_report(report: Self::Report) -> Result<Option<JsonShared<Size>>, RuntimeError>;
184+
fn json_report(report: Self::Report) -> Result<Option<JsonShared<Size>>, RuntimeError>;
185185
}
186186

187187
impl<Size> HardlinkSubroutines<Size> for HardlinkIgnorant
@@ -197,7 +197,7 @@ where
197197
Ok(())
198198
}
199199

200-
fn serializable_report((): Self::Report) -> Result<Option<JsonShared<Size>>, RuntimeError> {
200+
fn json_report((): Self::Report) -> Result<Option<JsonShared<Size>>, RuntimeError> {
201201
Ok(None)
202202
}
203203
}

src/app/sub/unix_ext.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ where
2525
Ok(())
2626
}
2727

28-
fn serializable_report(report: Self::Report) -> Result<Option<JsonShared<Size>>, RuntimeError> {
28+
fn json_report(report: Self::Report) -> Result<Option<JsonShared<Size>>, RuntimeError> {
2929
let summary = report.summarize().pipe(Some);
3030
let details = report.into_reflection().pipe(Some);
3131
Ok(Some(JsonShared { details, summary }))

0 commit comments

Comments
 (0)