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 /test_util/src/pty.rs | |
parent | 1a1faff2f67613ed0b89e1a34e6c3fd02ca6fd83 (diff) |
chore: upgrade to Rust 1.67 (#17548)
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'test_util/src/pty.rs')
-rw-r--r-- | test_util/src/pty.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test_util/src/pty.rs b/test_util/src/pty.rs index b2d7201ae..f3bb2829f 100644 --- a/test_util/src/pty.rs +++ b/test_util/src/pty.rs @@ -8,7 +8,7 @@ pub trait Pty: Read { fn write_text(&mut self, text: &str); fn write_line(&mut self, text: &str) { - self.write_text(&format!("{}\n", text)); + self.write_text(&format!("{text}\n")); } /// Reads the output to the EOF. @@ -442,7 +442,7 @@ mod windows { let mut parts = env_vars .into_iter() // each environment variable is in the form `name=value\0` - .map(|(key, value)| format!("{}={}\0", key, value)) + .map(|(key, value)| format!("{key}={value}\0")) .collect::<Vec<_>>(); // all strings in an environment block must be case insensitively |