Skip to content

Commit a998094

Browse files
fix clippy
1 parent 4ee8e0d commit a998094

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/fmt.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ mod tests {
118118
use crate::{IntoPyObject, Python};
119119

120120
#[test]
121+
#[allow(clippy::write_literal)]
121122
#[cfg(not(Py_LIMITED_API))]
122123
fn unicode_writer_test() {
123124
use std::fmt::Write;
@@ -140,10 +141,10 @@ mod tests {
140141
#[test]
141142
fn test_complex_format() {
142143
Python::with_gil(|py| {
143-
let complex_value = (42, "foo", 3.14).into_pyobject(py).unwrap();
144+
let complex_value = (42, "foo", [0; 0]).into_pyobject(py).unwrap();
144145
let py_string = py_format!(py, "This is some complex value: {complex_value}").unwrap();
145146
let actual = py_string.to_cow().unwrap();
146-
let expected = "This is some complex value: (42, 'foo', 3.14)";
147+
let expected = "This is some complex value: (42, 'foo', [])";
147148
assert_eq!(actual, expected);
148149
});
149150
}

0 commit comments

Comments
 (0)