]> git.lizzy.rs Git - rust.git/blobdiff - src/tools/clippy/tests/ui/manual_unwrap_or.fixed
Auto merge of #99099 - Stargateur:phantomdata_debug, r=joshtriplett
[rust.git] / src / tools / clippy / tests / ui / manual_unwrap_or.fixed
index 05d6c56f2aca0a5dd63a3d635468800d0431a5e3..7d68978216c9c67b8931a9562e96d3e7791930de 100644 (file)
@@ -78,7 +78,7 @@ fn result_unwrap_or() {
     (Ok(1) as Result<i32, &str>).unwrap_or(42);
 
     // method call case, suggestion must not surround Result expr `s.method()` with parentheses
-    struct S {}
+    struct S;
     impl S {
         fn method(self) -> Option<i32> {
             Some(42)