1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 12:07:46 +00:00

ptx: fix build on stable

This commit is contained in:
Michael Gehring 2016-01-06 16:20:59 +01:00
parent 8782552f45
commit 9cd7d03eff
2 changed files with 4 additions and 4 deletions

View file

@ -56,7 +56,7 @@ generic = [
"od", "od",
"paste", "paste",
"printenv", "printenv",
"ptx", # skip_on_stable "ptx",
"pwd", "pwd",
"readlink", "readlink",
"realpath", "realpath",

View file

@ -334,9 +334,9 @@ fn trim_idx(s: &[char], beg: usize, end: usize) -> (usize, usize) {
fn get_output_chunks(all_before: &str, keyword: &str, all_after: &str, fn get_output_chunks(all_before: &str, keyword: &str, all_after: &str,
config: &Config) -> (String, String, String, String) { config: &Config) -> (String, String, String, String) {
assert_eq!(all_before.trim().to_owned(), *all_before); assert_eq!(all_before.trim(), all_before);
assert_eq!(keyword.trim().to_owned(), *keyword); assert_eq!(keyword.trim(), keyword);
assert_eq!(all_after.trim().to_owned(), *all_after); assert_eq!(all_after.trim(), all_after);
let mut head = String::new(); let mut head = String::new();
let mut before = String::new(); let mut before = String::new();
let mut after = String::new(); let mut after = String::new();