mirror of
https://github.com/rust-lang/rust.git
synced 2026-03-19 10:59:30 +00:00
Remove unneeded replace
This commit is contained in:
@@ -695,7 +695,7 @@ impl Attributes {
|
||||
self.other_attrs
|
||||
.lists(sym::doc)
|
||||
.filter(|a| a.has_name(sym::alias))
|
||||
.filter_map(|a| a.value_str().map(|s| s.to_string().replace("\"", "")))
|
||||
.filter_map(|a| a.value_str().map(|s| s.to_string()))
|
||||
.filter(|v| !v.is_empty())
|
||||
.collect::<FxHashSet<_>>()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user