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
Arc<str>
Arc<str> type cannot call to_case, you need to convert .as_ref() to &str first.
to_case
.as_ref()
&str
error[E0599]: the method `to_case` exists for struct `Arc<str>`, but its trait bounds were not satisfied --> projects\src\variants\codegen.rs:37:31 | 37 | let wasi_alias = name.to_case(Case::Kebab); | ^^^^^^^ | 365 | pub struct String { | ----------------- doesn't satisfy `_: PartialEq<Arc<str>>` | 248 | / pub struct Arc< 249 | | T: ?Sized, 250 | | #[unstable(feature = "allocator_api", issue = "32838")] A: Allocator = Global, 251 | | > { | |_- doesn't satisfy `std::sync::Arc<str>: Casing<std::sync::Arc<str>>` | = note: the following trait bounds were not satisfied: `std::string::String: PartialEq<std::sync::Arc<str>>` which is required by `std::sync::Arc<str>: Casing<std::sync::Arc<str>>` `str: Sized` which is required by `str: Casing<str>`
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Arc<str>
type cannot callto_case
, you need to convert.as_ref()
to&str
first.The text was updated successfully, but these errors were encountered: