Use `escape_to_string` in tests
This commit is contained in:
parent
63186cb15f
commit
c5fc4a64a6
|
@ -80,9 +80,9 @@ mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
fn escape(feed: &str) -> String {
|
fn escape(feed: &str) -> String {
|
||||||
let mut buf = Buffer::new();
|
let mut s = String::new();
|
||||||
escape_to_buf(feed, &mut buf);
|
escape_to_string(feed, &mut s);
|
||||||
buf.into_string()
|
s
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Reference in New Issue