Skip to content

Commit

Permalink
Fix also clippy 1.80 lints
Browse files Browse the repository at this point in the history
  • Loading branch information
strohel committed Aug 19, 2024
1 parent 13fa4fc commit 9e46c9e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion genapi/src/parser/elem_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ impl Parse for NodeId {
_: &mut impl CacheStoreBuilder,
) -> Self {
let text = node.next_text().unwrap();
node_builder.get_or_intern(&text.view())
node_builder.get_or_intern(text.view())
}
}

Expand Down
2 changes: 1 addition & 1 deletion genapi/src/parser/port.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ impl Parse for PortNode {
let chunk_id = node.next_if(CHUNK_ID).map_or_else(
|| {
node.next_if(P_CHUNK_ID).map(|next_node| {
ImmOrPNode::PNode(node_builder.get_or_intern(&next_node.text().view()))
ImmOrPNode::PNode(node_builder.get_or_intern(next_node.text().view()))
})
},
|next_node| {
Expand Down
2 changes: 1 addition & 1 deletion genapi/src/parser/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl Parse for StringNode {
.parse_if(STREAMABLE, node_builder, value_builder, cache_builder)
.unwrap_or_default();
let value = node.next_if(VALUE).map_or_else(
|| ImmOrPNode::PNode(node_builder.get_or_intern(&node.next_text().unwrap().view())),
|| ImmOrPNode::PNode(node_builder.get_or_intern(node.next_text().unwrap().view())),
|next_node| {
let id = value_builder.store(next_node.text().view().into_owned());
ImmOrPNode::Imm(id)
Expand Down

0 comments on commit 9e46c9e

Please sign in to comment.