Remove PathTokens from public API
diff --git a/src/expr.rs b/src/expr.rs
index 809463a..9440c1c 100644
--- a/src/expr.rs
+++ b/src/expr.rs
@@ -3473,7 +3473,7 @@
impl ToTokens for ExprPath {
fn to_tokens(&self, tokens: &mut TokenStream) {
outer_attrs_to_tokens(&self.attrs, tokens);
- ::PathTokens(&self.qself, &self.path).to_tokens(tokens)
+ private::print_path(tokens, &self.qself, &self.path);
}
}
@@ -3669,7 +3669,7 @@
#[cfg(feature = "full")]
impl ToTokens for PatPath {
fn to_tokens(&self, tokens: &mut TokenStream) {
- ::PathTokens(&self.qself, &self.path).to_tokens(tokens);
+ private::print_path(tokens, &self.qself, &self.path);
}
}