add macro for .parse().unwrap()

This commit is contained in:
YK 2024-11-27 17:02:56 +03:00
parent ce521e996a
commit 9c0653f39e

View File

@ -9,3 +9,10 @@ pub macro s {
format!("{}", $s)
}
}
pub macro p {
($s: expr) => {
$s.parse().unwrap()
}
}