Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 72d5b45

Browse files
author
Jonas Schievink
committed
Fix doc test
1 parent e110c78 commit 72d5b45

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

crates/ide-assists/src/handlers/convert_match_to_let_else.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ use crate::{
1414
// Converts let statement with match initializer to let-else statement.
1515
//
1616
// ```
17+
// # //- minicore: option
1718
// fn foo(opt: Option<()>) {
1819
// let val = $0match opt {
1920
// Some(it) => it,

crates/ide-assists/src/tests/generated.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,7 @@ fn doctest_convert_match_to_let_else() {
412412
check_doc_test(
413413
"convert_match_to_let_else",
414414
r#####"
415+
//- minicore: option
415416
fn foo(opt: Option<()>) {
416417
let val = $0match opt {
417418
Some(it) => it,

0 commit comments

Comments
 (0)