Use `escape_to_string` in tests

This commit is contained in:
Kogia-sima 2020-06-07 23:01:24 +09:00
parent 63186cb15f
commit c5fc4a64a6
1 changed files with 3 additions and 3 deletions

View File

@ -80,9 +80,9 @@ mod tests {
use super::*;
fn escape(feed: &str) -> String {
let mut buf = Buffer::new();
escape_to_buf(feed, &mut buf);
buf.into_string()
let mut s = String::new();
escape_to_string(feed, &mut s);
s
}
#[test]