mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 22:31:14 +00:00
Internal cleanup: Replaces more uses of **foo with foo.as_str()
Same as commit 0b7dc17644
, this makes it easier to see where the deref leads to.
This commit is contained in:
parent
4779c97ba2
commit
cd5385887b
1 changed files with 2 additions and 2 deletions
|
@ -153,7 +153,7 @@ impl<'a> TypeLoader<'a> {
|
||||||
let doc = self.all_documents.docs.get(&doc_path).unwrap();
|
let doc = self.all_documents.docs.get(&doc_path).unwrap();
|
||||||
|
|
||||||
doc.exports().iter().find_map(|(export_name, ty)| {
|
doc.exports().iter().find_map(|(export_name, ty)| {
|
||||||
if type_name == &**export_name {
|
if type_name == export_name.as_str() {
|
||||||
Some(ty.clone())
|
Some(ty.clone())
|
||||||
} else {
|
} else {
|
||||||
None
|
None
|
||||||
|
@ -332,7 +332,7 @@ impl<'a> TypeLoader<'a> {
|
||||||
|
|
||||||
for import_name in imported_types {
|
for import_name in imported_types {
|
||||||
let imported_type = exports.iter().find_map(|(export_name, ty)| {
|
let imported_type = exports.iter().find_map(|(export_name, ty)| {
|
||||||
if import_name.external_name == **export_name {
|
if import_name.external_name == export_name.as_str() {
|
||||||
Some(ty.clone())
|
Some(ty.clone())
|
||||||
} else {
|
} else {
|
||||||
None
|
None
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue