Skip to content

Commit

Permalink
Change the parameter name of From::from to value
Browse files Browse the repository at this point in the history
  • Loading branch information
H4x5 authored Oct 3, 2022
1 parent 33d3519 commit 8dcecdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/convert/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8dcecdb

Please sign in to comment.