Fix extern prelude failure in rustdoc
This commit is contained in:
parent
0b7c9e756e
commit
dadfa13f47
4 changed files with 17 additions and 3 deletions
|
@ -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)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue