mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
refactor: remove unnecessary function
This commit is contained in:
parent
b59e827dba
commit
25f5267c61
@ -348,7 +348,9 @@ impl<'a, 'cfg> Context<'a, 'cfg> {
|
||||
pub fn prepare(&mut self) -> CargoResult<()> {
|
||||
let _p = profile::start("preparing layout");
|
||||
|
||||
self.files_mut()
|
||||
self.files
|
||||
.as_mut()
|
||||
.unwrap()
|
||||
.host
|
||||
.prepare()
|
||||
.with_context(|| "couldn't prepare build directories")?;
|
||||
@ -375,10 +377,6 @@ impl<'a, 'cfg> Context<'a, 'cfg> {
|
||||
self.files.as_ref().unwrap()
|
||||
}
|
||||
|
||||
fn files_mut(&mut self) -> &mut CompilationFiles<'a, 'cfg> {
|
||||
self.files.as_mut().unwrap()
|
||||
}
|
||||
|
||||
/// Returns the filenames that the given unit will generate.
|
||||
pub fn outputs(&self, unit: &Unit) -> CargoResult<Arc<Vec<OutputFile>>> {
|
||||
self.files.as_ref().unwrap().outputs(unit, self.bcx)
|
||||
|
Loading…
x
Reference in New Issue
Block a user