Swap return value of pipes::init Fixes #4501
auto merge of #6896 : nickdesaulniers/rust/issue4501, r=brson

review? @brson