diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-01-27 10:43:16 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-27 10:43:16 -0500 |
commit | f5840bdcd360ec0bac2501f333e58e25742b1537 (patch) | |
tree | 7eb0818d2cafa0f6824e81b6ed2cfb609830971e /serde_v8/examples/basic.rs | |
parent | 1a1faff2f67613ed0b89e1a34e6c3fd02ca6fd83 (diff) |
chore: upgrade to Rust 1.67 (#17548)
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'serde_v8/examples/basic.rs')
-rw-r--r-- | serde_v8/examples/basic.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/serde_v8/examples/basic.rs b/serde_v8/examples/basic.rs index f1ea4d6a5..29fb98085 100644 --- a/serde_v8/examples/basic.rs +++ b/serde_v8/examples/basic.rs @@ -30,7 +30,7 @@ fn main() { let v = exec(scope, "32"); let x32: u64 = serde_v8::from_v8(scope, v).unwrap(); - println!("x32 = {}", x32); + println!("x32 = {x32}"); let v = exec(scope, "({a: 1, b: 3, c: 'ignored'})"); let mop: MathOp = serde_v8::from_v8(scope, v).unwrap(); @@ -41,15 +41,15 @@ fn main() { let v = exec(scope, "[1,2,3,4,5]"); let arr: Vec<u64> = serde_v8::from_v8(scope, v).unwrap(); - println!("arr = {:?}", arr); + println!("arr = {arr:?}"); let v = exec(scope, "['hello', 'world']"); let hi: Vec<String> = serde_v8::from_v8(scope, v).unwrap(); - println!("hi = {:?}", hi); + println!("hi = {hi:?}"); let v: v8::Local<v8::Value> = v8::Number::new(scope, 12345.0).into(); let x: f64 = serde_v8::from_v8(scope, v).unwrap(); - println!("x = {}", x); + println!("x = {x}"); } // SAFETY: all isolates have been destroyed, so we can now safely let V8 clean |