diff --git a/compiler/rustc_error_messages/src/lib.rs b/compiler/rustc_error_messages/src/lib.rs index 508d419cdb6..1b8267524af 100644 --- a/compiler/rustc_error_messages/src/lib.rs +++ b/compiler/rustc_error_messages/src/lib.rs @@ -219,15 +219,12 @@ impl DiagnosticMessage { } /// Create a `DiagnosticMessage` for the provided Fluent identifier. - pub fn fluent(id: impl Into>) -> Self { + pub fn fluent(id: impl Into) -> Self { DiagnosticMessage::FluentIdentifier(id.into(), None) } /// Create a `DiagnosticMessage` for the provided Fluent identifier and attribute. - pub fn fluent_attr( - id: impl Into>, - attr: impl Into>, - ) -> Self { + pub fn fluent_attr(id: impl Into, attr: impl Into) -> Self { DiagnosticMessage::FluentIdentifier(id.into(), Some(attr.into())) } }