]> git.lizzy.rs Git - rust.git/blobdiff - src/libstd/io/cursor.rs
Rollup merge of #70038 - DutchGhost:const-forget-tests, r=RalfJung
[rust.git] / src / libstd / io / cursor.rs
index 9787cbb556bd237ba7c76bfaee5142c981cc303e..f36aa1846a16c172333b1397ed01204fbeaa890b 100644 (file)
@@ -96,7 +96,7 @@ impl<T> Cursor<T> {
     /// ```
     #[stable(feature = "rust1", since = "1.0.0")]
     pub fn new(inner: T) -> Cursor<T> {
-        Cursor { pos: 0, inner: inner }
+        Cursor { pos: 0, inner }
     }
 
     /// Consumes this cursor, returning the underlying value.