Change the parameter name of From::from to value

This commit is contained in:
H4x5 2022-10-03 13:36:57 -04:00 committed by GitHub
parent 33d351972a
commit 8dcecdb487
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -376,7 +376,7 @@ pub trait From<T>: Sized {
#[lang = "from"]
#[must_use]
#[stable(feature = "rust1", since = "1.0.0")]
fn from(_: T) -> Self;
fn from(value: T) -> Self;
}
/// An attempted conversion that consumes `self`, which may or may not be