code cleanup.

This commit is contained in:
Stephen Chung
2022-12-01 14:24:08 +08:00
parent acadb58f4f
commit 28640a6fe4
7 changed files with 9 additions and 5 deletions

View File

@@ -1175,6 +1175,7 @@ impl Dynamic {
/// ```
#[inline]
#[must_use]
#[allow(unused_mut)]
pub fn try_cast<T: Any>(mut self) -> Option<T> {
// Coded this way in order to maximally leverage potentials for dead-code removal.