about summary refs log tree commit diff
path: root/library/stdarch/examples
diff options
context:
space:
mode:
authorYuri Astrakhan <yuriastrakhan@gmail.com>2022-10-25 15:17:23 -0400
committerGitHub <noreply@github.com>2022-10-25 20:17:23 +0100
commit81c221f05816a8eaadafec19e9c40273e9d23c71 (patch)
tree524b9addbba5217539fe30e8bde76b61bba8431e /library/stdarch/examples
parent4273e3cf8b580381c64525b8c55abf17519743ee (diff)
downloadrust-81c221f05816a8eaadafec19e9c40273e9d23c71.tar.gz
rust-81c221f05816a8eaadafec19e9c40273e9d23c71.zip
Edition 2021, apply clippy::uninlined_format_args fix (#1339)
Diffstat (limited to 'library/stdarch/examples')
-rw-r--r--library/stdarch/examples/Cargo.toml2
-rw-r--r--library/stdarch/examples/connect5.rs2
-rw-r--r--library/stdarch/examples/hex.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/library/stdarch/examples/Cargo.toml b/library/stdarch/examples/Cargo.toml
index e2590ed9ff2..38f497fa61a 100644
--- a/library/stdarch/examples/Cargo.toml
+++ b/library/stdarch/examples/Cargo.toml
@@ -7,7 +7,7 @@ authors = [
     "Gonzalo Brito Gadeschi <gonzalobg88@gmail.com>",
 ]
 description = "Examples of the stdarch crate."
-edition = "2018"
+edition = "2021"
 default-run = "hex"
 
 [dependencies]
diff --git a/library/stdarch/examples/connect5.rs b/library/stdarch/examples/connect5.rs
index 1b332578521..09e7e48a7c4 100644
--- a/library/stdarch/examples/connect5.rs
+++ b/library/stdarch/examples/connect5.rs
@@ -1256,7 +1256,7 @@ fn main() {
             pos_disp(&test1);
 
             if pos_is_end(&test1) {
-                println!("Game over!!!!!! at Move {}", i);
+                println!("Game over!!!!!! at Move {i}");
                 count = i + 1;
                 break;
             }
diff --git a/library/stdarch/examples/hex.rs b/library/stdarch/examples/hex.rs
index d982a71b911..a961793a045 100644
--- a/library/stdarch/examples/hex.rs
+++ b/library/stdarch/examples/hex.rs
@@ -40,7 +40,7 @@ fn main() {
     io::stdin().read_to_end(&mut input).unwrap();
     let mut dst = vec![0; 2 * input.len()];
     let s = hex_encode(&input, &mut dst).unwrap();
-    println!("{}", s);
+    println!("{s}");
 }
 
 fn hex_encode<'a>(src: &[u8], dst: &'a mut [u8]) -> Result<&'a str, usize> {