New issue
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
Validate item names/ids without allocating Vec
#2675
Comments
https://docs.rs/zerocopy/latest/zerocopy/ Might be useful |
Where this data_model/src/trigger/mod.rs is located? |
Hi! This is an iroha version 2 issue, so you need to switch to the iroha2-dev branch. |
Let's cath up
|
@appetrosyan after look at let vector: Vec<&str> = string.split('@').collect(); with let mut split = s.split('@');
match (split.next(), split.next(), split.next()) { That`s right? |
@suiwenfeng, yes, this was my initial idea. |
Great to hear! Will be waiting for the PR. |
I would like to do it |
You took my task, what a shame! |
While I am not sure it helps, there's a list of several issues that may be interesting for the new contributors. |
For example you can take a look at #2123. |
To suiwenfeng: Sir, For sure you are very strong and quick, and a message above by 6r1d is definitely not only for you! |
Signed-off-by: Wenfeng Sui suiwenfeng@qq.com Signed-off-by: wfsui <wfsui@protonmail.com>
We have a few places where we allocate a vector within the
FromStr
implementation for an element name/id when we don't really need to.Approach without allocation: data_model/src/trigger/mod.rs impl FromStr for Id.
The text was updated successfully, but these errors were encountered: