allow rsx to be used outside of a proc_macro context
This commit is contained in:
1 parent
4b1ea5879d
commit
06390b9be5
8 files changed
+30
-46
No files matched your search
@@ -1,3 +1,4 @@
|
||||
#[cfg(feature = "to_tokens")]
|
||||
use ::quote::{quote, ToTokens};
|
||||
use ::std::ops::Not;
|
||||
use ::syn::{
|
||||
@@ -7,6 +8,7 @@ use ::syn::{
|
||||
};
|
||||
use proc_macro2::TokenStream;
|
||||
|
||||
#[cfg(feature = "to_tokens")]
|
||||
pub fn format_args_f_impl(input: IfmtInput) -> Result<TokenStream> {
|
||||
let IfmtInput {
|
||||
format_literal,
|
||||
|
||||
Reference in new issue
Block a user