Skip to content

Commit 0afbb65

Browse files
Remove no_run tags on missing_transmute_annotations code examples
1 parent 8f9ef1c commit 0afbb65

File tree

1 file changed

+2
-2
lines changed
  • clippy_lints/src/transmute

1 file changed

+2
-2
lines changed

clippy_lints/src/transmute/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ declare_clippy_lint! {
435435
/// to infer a technically correct yet unexpected type.
436436
///
437437
/// ### Example
438-
/// ```no_run
438+
/// ```
439439
/// # unsafe {
440440
/// let mut x: i32 = 0;
441441
/// // Avoid "naked" calls to `transmute()`!
@@ -450,7 +450,7 @@ declare_clippy_lint! {
450450
/// # }
451451
/// ```
452452
/// Use instead:
453-
/// ```no_run
453+
/// ```
454454
/// # unsafe {
455455
/// let x = std::mem::transmute::<[u16; 2], i32>([1u16, 2u16]);
456456
///

0 commit comments

Comments
 (0)