@@ -20,6 +20,7 @@ use errors::*;
2020use inputfile::InputFile;
2121use line_range::LineRange;
2222use style::{OutputComponent, OutputComponents, OutputWrap};
23+use util::transpose;
2324
2425#[derive(Debug, Clone, Copy, PartialEq)]
2526pub enum PagingMode {
@@ -74,12 +75,6 @@ fn is_truecolor_terminal() -> bool {
7475 .unwrap_or(false)
7576}
7677
77−/// Helper function that might appear in Rust stable at some point
78−/// (https://doc.rust-lang.org/stable/std/option/enum.Option.html#method.transpose)
79−fn transpose<T>(opt: Option<Result<T>>) -> Result<Option<T>> {
80− opt.map_or(Ok(None), |res| res.map(Some))
81−}
82−
8378pub struct App {
8479 pub matches: ArgMatches<'static>,
8580 interactive_output: bool,