Fix compilation error "the trait bound SubdiagnosticMessage: From<&std::string::String> is not satisfied"

This commit is contained in:
Guillaume Gomez 2023-05-03 14:44:45 +02:00
parent 6e21e4823d
commit bbaa930b35

View File

@ -67,10 +67,11 @@ pub(crate) fn look_for_custom_classes<'tcx>(cx: &DocContext<'tcx>, item: &Item)
.note(
// This will list the wrong items to make them more easily searchable.
// To ensure the most correct hits, it adds back the 'class:' that was stripped.
&format!(
format!(
"found these custom classes: class={}",
tests.custom_classes_found.join(",class=")
),
)
.as_str(),
)
.emit();
}