#![macro_use]
macro_rules! with_key {
($k:ident, $path:expr => $b:block) => {{
let mut path = "Software\\WinRegRsTest".to_owned();
path.push_str($path);
let ($k, _disp) = winreg::HKCU.create_subkey(&path).unwrap();
$b
winreg::HKCU.delete_subkey_all(path).unwrap();
}}
}