We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ChainItemKind::is_tup_field_access
1 parent 06e1644 commit 1a70f40Copy full SHA for 1a70f40
src/chains.rs
@@ -209,7 +209,7 @@ impl ChainItemKind {
209
fn is_tup_field_access(expr: &ast::Expr) -> bool {
210
match expr.kind {
211
ast::ExprKind::Field(_, ref field) => {
212
- field.name.to_string().chars().all(|c| c.is_digit(10))
+ field.name.as_str().chars().all(|c| c.is_digit(10))
213
}
214
_ => false,
215
0 commit comments