Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide/src/runnables.rs')
-rw-r--r--crates/ide/src/runnables.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ide/src/runnables.rs b/crates/ide/src/runnables.rs
index 352ce89820..3008722cdb 100644
--- a/crates/ide/src/runnables.rs
+++ b/crates/ide/src/runnables.rs
@@ -500,7 +500,7 @@ fn has_runnable_doc_test(attrs: &hir::Attrs) -> bool {
docs_from_attrs(attrs).map_or(false, |doc| {
let mut in_code_block = false;
- for line in String::from(doc).lines() {
+ for line in doc.lines() {
if let Some(header) =
RUSTDOC_FENCES.into_iter().find_map(|fence| line.strip_prefix(fence))
{
@@ -570,7 +570,7 @@ mod tests {
if let Some(cfg) = runnable.cfg {
a.push_str(&format!(", {cfg:?}"));
}
- a.push_str(")");
+ a.push(')');
a
})
.collect::<Vec<_>>();