We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
r#
scale-info now complains that All path segments should be valid Rust identifiers if a module path contains r#, uncovered in autonomys/subspace#330.
All path segments should be valid Rust identifiers
A quick solution could be simply ignoring r# in my opinion, not sure whether it has other side effects though.
@@ -97,7 +84,16 @@ impl Path { /// /// - If the type identifier or module path contain invalid Rust identifiers pub fn new(ident: &'static str, module_path: &'static str) -> Path { - let mut segments = module_path.split("::").collect::<Vec<_>>(); + let mut segments = module_path + .split("::") + .map(|s| { + if let Some(stripped) = s.strip_prefix("r#") { + stripped + } else { + s + } + }) + .collect::<Vec<_>>();
CC @nazar-pc
The text was updated successfully, but these errors were encountered:
r#mod
Thank you for the bug report. See #149 for a fix
Sorry, something went wrong.
That seems to be cleaner, Thanks for the quick fix!
Successfully merging a pull request may close this issue.
scale-info now complains that
All path segments should be valid Rust identifiers
if a module path containsr#
, uncovered in autonomys/subspace#330.A quick solution could be simply ignoring
r#
in my opinion, not sure whether it has other side effects though.CC @nazar-pc
The text was updated successfully, but these errors were encountered: