Skip to content

Commit

Permalink
Sort inline dependencies alphabetically by key
Browse files Browse the repository at this point in the history
  • Loading branch information
jdisanti authored and Daniele Ahmed committed Jul 22, 2022
1 parent b446403 commit 5779a0d
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,14 @@ open class RustCrate(
.filter { !writtenDependencies.contains(it.key()) }
}
while (unloadedDependencies().isNotEmpty()) {
unloadedDependencies().forEach { dep ->
writtenDependencies.add(dep.key())
this.withModule(dep.module) {
dep.renderer(it)
unloadedDependencies()
.sortedBy { it.key() }
.forEach { dep ->
writtenDependencies.add(dep.key())
this.withModule(dep.module) {
dep.renderer(it)
}
}
}
}
}

Expand Down

0 comments on commit 5779a0d

Please sign in to comment.