Skip to content

Commit 4c7a4a5

Browse files
RolandSherwinjacderida
authored andcommitted
chore: clippy fix
1 parent ded04f6 commit 4c7a4a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ impl AntReleaseRepoActions for AntReleaseRepository {
313313

314314
let file_name = url
315315
.split('/')
316-
.last()
316+
.next_back()
317317
.ok_or_else(|| Error::CannotParseFilenameFromUrl)?;
318318
let dest_path = dest_dir_path.join(file_name);
319319

0 commit comments

Comments
 (0)