From 6862776fc803c917c0ed95538002c72786f73fb4 Mon Sep 17 00:00:00 2001 From: Moritz Hoffmann Date: Fri, 14 Jun 2024 14:46:03 -0400 Subject: [PATCH] Fix warning on Rust 1.79 Signed-off-by: Moritz Hoffmann --- README.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index d24acc2..4e7018f 100644 --- a/README.md +++ b/README.md @@ -12,12 +12,11 @@ flatcontainer = "0.4" ```rust use flatcontainer::FlatStack; -fn main() { - let r: Result<_, u16> = Ok("abc"); - let mut c = FlatStack::default_impl::>(); - c.copy(&r); - assert_eq!(r, c.get(0)); -} + +let r: Result<_, u16> = Ok("abc"); +let mut c = FlatStack::default_impl::>(); +c.copy(&r); +assert_eq!(r, c.get(0)); ``` ## Details