Skip to content

Commit e3976d1

Browse files
committed
Suppress compiling warning when building for Python 2.7.
1 parent 9638c89 commit e3976d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/objects/string.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,7 @@ mod test {
611611
assert_eq!(b"Hello", &v[..]);
612612
}
613613

614+
#[allow(unused_variables)] // when compiling for py2.7
614615
#[test]
615616
fn test_extract_umlaut() {
616617
let gil = Python::acquire_gil();
@@ -628,6 +629,7 @@ mod test {
628629
assert_eq!("x=ä", py_string.extract::<String>(py).unwrap());
629630
}
630631

632+
#[allow(unused_variables)] // when compiling for py2.7
631633
#[test]
632634
fn test_extract_lone_surrogate() {
633635
let gil = Python::acquire_gil();

0 commit comments

Comments
 (0)