Skip to content

Commit b5f679f

Browse files
ndmitchellfacebook-github-bot
authored andcommitted
Remove a redundant into_iter
Summary: Clippy says it is redundant. Reviewed By: JakobDegen Differential Revision: D47226537 fbshipit-source-id: 91aeea99b38218e27402a0496bc0c531210332c8
1 parent 051aefb commit b5f679f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

starlark/src/docs/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ pub fn render_docs_as_code(docs: &[Doc]) -> String {
832832
.partition(|d| matches!(d.item, DocItem::Module(_)));
833833
modules
834834
.into_iter()
835-
.chain(non_modules.into_iter())
835+
.chain(non_modules)
836836
.map(|d| d.render_as_code())
837837
.join("\n\n")
838838
}

0 commit comments

Comments
 (0)