Remove an unnecessary use of Box::into_inner.

This commit is contained in:
Nicholas Nethercote 2025-05-27 02:06:40 +10:00
parent 283db70ace
commit 19802e8e9c
2 changed files with 1 additions and 2 deletions

View File

@ -1325,7 +1325,7 @@ impl<'a, G: EmissionGuarantee> Diag<'a, G> {
));
self.note("consider using `--verbose` to print the full type name to the console");
}
Box::into_inner(self.diag.take().unwrap())
*self.diag.take().unwrap()
}
/// This method allows us to access the path of the file where "long types" are written to.

View File

@ -12,7 +12,6 @@
#![feature(array_windows)]
#![feature(assert_matches)]
#![feature(associated_type_defaults)]
#![feature(box_into_inner)]
#![feature(box_patterns)]
#![feature(default_field_values)]
#![feature(error_reporter)]