1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

Merge pull request #795 from ebfe/ptx-stable

ptx: fix build on stable
This commit is contained in:
Heather 2016-01-06 19:56:14 +04:00
commit 27c77db122
2 changed files with 4 additions and 4 deletions

View file

@ -56,7 +56,7 @@ generic = [
"od",
"paste",
"printenv",
"ptx", # skip_on_stable
"ptx",
"pwd",
"readlink",
"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,
config: &Config) -> (String, String, String, String) {
assert_eq!(all_before.trim().to_owned(), *all_before);
assert_eq!(keyword.trim().to_owned(), *keyword);
assert_eq!(all_after.trim().to_owned(), *all_after);
assert_eq!(all_before.trim(), all_before);
assert_eq!(keyword.trim(), keyword);
assert_eq!(all_after.trim(), all_after);
let mut head = String::new();
let mut before = String::new();
let mut after = String::new();