Skip to content

Commit 685d3e6

Browse files
committed
Fix doctests
1 parent e323c2d commit 685d3e6

File tree

1 file changed

+2
-0
lines changed
  • clippy_lints/src/methods

1 file changed

+2
-0
lines changed

clippy_lints/src/methods/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ declare_clippy_lint! {
113113
/// ```rust
114114
/// let opt = Some(1);
115115
/// opt?;
116+
/// # Some::<()>(())
116117
/// ```
117118
pub OPTION_EXPECT_USED,
118119
restriction,
@@ -141,6 +142,7 @@ declare_clippy_lint! {
141142
/// ```rust
142143
/// let res: Result<usize, ()> = Ok(1);
143144
/// res?;
145+
/// # Ok::<(), ()>(())
144146
/// ```
145147
pub RESULT_EXPECT_USED,
146148
restriction,

0 commit comments

Comments
 (0)