1
Fork 0

Fix extern prelude failure in rustdoc

This commit is contained in:
Guillaume Gomez 2018-05-10 20:13:25 +02:00
parent 0b7c9e756e
commit dadfa13f47
4 changed files with 17 additions and 3 deletions

View file

@ -494,6 +494,13 @@ impl Input {
Input::Str { .. } => "rust_out".to_string(),
}
}
pub fn get_input(&mut self) -> Option<&mut String> {
match *self {
Input::File(_) => None,
Input::Str { ref mut input, .. } => Some(input),
}
}
}
#[derive(Clone)]