Skip to content
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

My rustlings #34

Open
wants to merge 87 commits into
base: main
Choose a base branch
from
Open

My rustlings #34

wants to merge 87 commits into from

Conversation

Mississilia
Copy link

No description provided.

xehpuk and others added 30 commits December 30, 2020 22:56
fix: typo in default out text
…-patch-1

fix: Update README.md for Windows users to exclude the rustlings directory
from the list of directories scanned by Anti-Virus programs.
docs: mention flatten in the options2 hint
* Small readbility improvement move_semantics4 doc

* Remove `an` as it refers to the argument
fix(threads1): line number correction
…chrizel

docs: add chrizel as a contributor
feat(conversions): Add more unit tests to `from_str` and `from_into` exercises.
1.
`rustlings list` should now display more than just the exercise names.
Information such as file paths and exercises statuses should be displayed.
The `--paths` option limits the displayed fields to only the path names; while the `--names`
option limits the displayed fields to only exercise names.
You can also control which exercises are displayed, by using the `--filter` option, or
the `--solved` or `--unsolved` flags.

Some use cases:
- Fetching pending exercise files with the keyword "conversion" to pass to my editor:
```sh
vim $(rustlings list --filter "conversion" --paths --unsolved)
```

- Fetching exercise names with keyword "conversion" to pass to `rustlings run`:
```sh
for exercise in $(rustlings list --filter "conversion" --names)
do
    rustlings run ${exercise}
done
```

2.
This should also fix rust-lang#465, and will likely fix rust-lang#585, as well.
That bug mentioned in those issues has to do with the way the `watch` command handler fetches the pending exercises.
Going forward, the least recently updated exercises along with all the other exercises in a pending state are fetched.
feat(cli): Improve the list command with options, and then some
Fix instructions(steps) for conversions/from_str exercice
…jfchevrette

docs: add jfchevrette as a contributor
Co-authored-by: John Baber-Lucero <git@frundle.com>
dariuswiles and others added 30 commits March 13, 2021 12:14
C++ `map` is more like BTreeMap.

`unordered_map` in C++(11) is the equivalent of `HashMap` in Rust.
(+ additional like for references).
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Add also an example of unimplemented!() macro.
By capitalizing the `c` letter it makes clear that we're talking about the C programming language.
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Replace emojis when NO_EMOJI env variable present
…blerchy

docs: add blerchy as a contributor
…flakolefluk

docs: add flakolefluk as a contributor
Use `Box<dyn error::Error>` to allow solutions to use `?` to propagate
errors.  In the tests, explicitly check `is_ok()` instead of trying to
force the error type to `String` (or other `PartialEq` type) using
`assert_eq!()`.
Use `Box<dyn error::Error>` to allow solutions to use `?` to propagate 
errors.
fix: use trait objects for try_from_into and from_str
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.