add macro for .parse().unwrap()
This commit is contained in:
1 parent
ce521e996a
commit
9c0653f39e
1 file changed
+7
@@ -9,3 +9,10 @@ pub macro s {
|
|||||||
format!("{}", $s)
|
format!("{}", $s)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
pub macro p {
|
||||||
|
($s: expr) => {
|
||||||
|
$s.parse().unwrap()
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in new issue
Block a user