fix: Fix compile error caused by default_value_os_t

This commit is contained in:
omjadas 2022-06-15 13:22:38 +10:00
parent 20358ff295
commit b1be436eda

View file

@ -594,7 +594,7 @@ impl Attrs {
quote_spanned!(ident.span()=> {
static DEFAULT_VALUE: clap::once_cell::sync::Lazy<::std::ffi::OsString> = clap::once_cell::sync::Lazy::new(|| {
let val: #ty = #val;
::std::ffi::OsString = val.into()
::std::ffi::OsString::from(val)
});
&*DEFAULT_VALUE
})