Small improvements to various files #1173
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Various small fixes to:
11.1: This code will not run as there is no main function, so removed the ability to run it
24.1: This code will not run due to the crate_name being set to something other than playground. Could be changed in a different way, but running the code is not the purpose of this code example so I removed the ability to run it. This could be changed in a different way, open to discussion if this isn't the best.
3.2: Removed an unneeded attribute of allow(dead_code) as there isn't any dead code
8.5.1.4: Changed example to actually use match as all the other destructuring examples do. This is the biggest change so can be moved into its own pull request, but didn't want to split these issues so finely as they are all quite small.
Can split all of these into separate pull requests but wasn't sure if spamming the pull requests would be best.
Alex