refactor(server): rewrote cell access using new helpers and added ast-grep rules for it
This commit is contained in:
13
server/rules/safecell/write-inline.yaml
Normal file
13
server/rules/safecell/write-inline.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
id: safecell-write-inline
|
||||
language: Rust
|
||||
rule:
|
||||
pattern: |
|
||||
{
|
||||
let mut $WRITE = $CELL.write();
|
||||
$$$BODY
|
||||
}
|
||||
fix:
|
||||
template: |
|
||||
$CELL.write_inline(|$WRITE| {
|
||||
$$$BODY
|
||||
});
|
||||
Reference in New Issue
Block a user