Add #[track_caller] to the "From implies Into" impl

This commit is contained in:
Emil Gardström 2024-01-10 10:20:26 +01:00
parent e927184629
commit 075f2e0345
No known key found for this signature in database
GPG Key ID: 2F08340FABEEA7AA

View File

@ -753,6 +753,7 @@ where
/// That is, this conversion is whatever the implementation of
/// <code>[From]&lt;T&gt; for U</code> chooses to do.
#[inline]
#[track_caller]
fn into(self) -> U {
U::from(self)
}