add macro for .next().unwrap()

This commit is contained in:
YK committed 2024-12-01 20:35:18 +03:00
1 parent 9f353660f1
commit 1670ffc8d7
1 file changed
+6
+6
View File
@@ -16,3 +16,9 @@ pub macro p {
$s.parse().unwrap()
}
}
pub macro n {
($s: expr) => {
$s.next().unwrap()
}
}