2156 Commits

Author SHA1 Message Date
Rock070
b42cfb167d Add new fruits to the basket if not already present 2023-12-30 17:15:50 +08:00
Rock070
551793f249 Add more fruits to the fruit basket 2023-12-30 17:04:03 +08:00
Rock070
b2b6dad75e Refactor string functions 2023-12-30 16:52:54 +08:00
Rock070
13c442ec31 Fix string manipulation functions 2023-12-30 16:49:44 +08:00
Rock070
c0768cc4da Fix function argument in strings2.rs 2023-12-30 16:49:41 +08:00
Rock070
27d1c37b1c Fix current_favorite_color function to return a String 2023-12-30 12:13:20 +08:00
Rock070
23a2a21036 Fix if statement in if1.rs and implement message variants in enums3.rs 2023-12-30 12:12:00 +08:00
Rock070
cac63c180d Add variants to Message enum 2023-12-23 11:47:10 +08:00
Rock070
73d43b3f90 Add message types to enum 2023-12-23 11:38:47 +08:00
Rock070
b480c57095 Refactor is_international and get_fees methods in Package struct 2023-12-23 11:38:04 +08:00
Rock070
aea00abd1c Update order creation in structs2.rs 2023-12-23 11:31:19 +08:00
Rock070
853394ec14 Add color struct definitions and instantiate structs 2023-12-23 11:18:37 +08:00
Rock070
778452a921 Refactor function parameters in move_semantics6.rs 2023-12-17 16:37:19 +08:00
Rock070
1a956075a0 Refactor mutable borrowing in move_semantics5.rs 2023-12-17 16:25:54 +08:00
Rock070
d1a3ab5c54 Refactor fill_vec function to create and fill the Vec internally 2023-12-17 16:20:42 +08:00
Rock070
a898c058fc Refactor fill_vec function to accept a mutable reference 2023-12-17 16:17:24 +08:00
Rock070
1c51ad049f Refactor fill_vec function to take a mutable reference to vec 2023-12-17 16:00:15 +08:00
Rock070
4fd794e942 Refactor fill_vec to take a mutable reference to vec 2023-12-17 15:53:22 +08:00
Rock070
51775de8dc Fix multiplication logic in vec_loop and vec_map functions 2023-12-17 15:42:04 +08:00
Rock070
294c97b9fc Declare vector using macro in vecs1.rs 2023-12-17 00:06:16 +08:00
Rock070
86d4b548b7 Fix function signatures and logic 2023-12-17 00:03:00 +08:00
Rock070
8de470b723 Update call_me function to accept a parameter 2023-12-17 00:02:56 +08:00
Rock070
d417017f6c Fix parameter type in call_me function 2023-12-17 00:02:51 +08:00
Rock070
33a8b24bc5 Add call_me function to print "Hello World!" 2023-12-17 00:02:42 +08:00
Rock070
fa29595ab2 Update variable initialization and type declaration 2023-12-15 02:09:11 +08:00
Rock070
30dbdbe55e Update variable initialization in main function 2023-12-15 02:09:08 +08:00
Rock070
92ce842ad2 Fix variable assignment in main function 2023-12-15 01:59:56 +08:00
Rock070
b4779c5ea1 Fix printline to println in intro2.rs 2023-12-15 01:59:53 +08:00
Rock070
8fea9a43ab Remove unfinished code in intro1.rs 2023-12-15 01:59:49 +08:00
liv
88b583f2bb
Merge pull request #1793 from rust-lang/all-contributors/add-bastianpedersen
docs: add bastianpedersen as a contributor for content
2023-11-29 17:39:57 +01:00
allcontributors[bot]
8863855627
docs: update .all-contributorsrc [skip ci] 2023-11-29 16:39:44 +00:00
allcontributors[bot]
5bbdb3d5ba
docs: update AUTHORS.md [skip ci] 2023-11-29 16:39:43 +00:00
liv
9f4b5566db
Merge pull request #1769 from bastianpedersen/patch-1
docs: reword `clippy1` exercise to be more readable
2023-11-29 17:39:28 +01:00
liv
f97f4bc4f1
Merge pull request #1792 from rust-lang/all-contributors/add-neuschaefer
docs: add neuschaefer as a contributor for code
2023-11-29 17:34:16 +01:00
allcontributors[bot]
3e7f1e3ff2
docs: update .all-contributorsrc [skip ci] 2023-11-29 16:33:59 +00:00
allcontributors[bot]
4b80097817
docs: update AUTHORS.md [skip ci] 2023-11-29 16:33:58 +00:00
liv
7f530ebf20
Merge pull request #1783 from neuschaefer/fe-nish
Fe-nish line rendering improvements
2023-11-29 17:33:41 +01:00
liv
11e74147ae
Merge pull request #1791 from rust-lang/all-contributors/add-matthri
docs: add matthri as a contributor for code
2023-11-29 17:20:27 +01:00
allcontributors[bot]
5d78a2f103
docs: update .all-contributorsrc [skip ci] 2023-11-29 16:10:38 +00:00
allcontributors[bot]
194e0b951d
docs: update AUTHORS.md [skip ci] 2023-11-29 16:10:37 +00:00
liv
369a3d3678
Merge pull request #1775 from matthri/update-notify-v6
Update `notify` dependency to v6
2023-11-29 17:10:21 +01:00
J. Neuschäfer
12d1bf407a feat(watch): Add red color to the finishing ferris
This adds some eye-candy for users who finish Rustlings. It is based on
ANSI terminal escape sequences and should work in most environments.
2023-11-22 02:07:52 +01:00
J. Neuschäfer
5c4821ac6f fix(watch): Fix rendering of the finishing ferris
In commit 571bab2 ("Run clippy --fix"), the "" string was changed to
r"", even though it contains an intentional escape sequence, which now
looks wrong. My commit undoes this change:

Before:

	+----------------------------------------------------+
	|          You made it to the Fe-nish line!          |
	+--------------------------  ------------------------+
				  \\/
	     ▒▒          ▒▒▒▒▒▒▒▒      ▒▒▒▒▒▒▒▒          ▒▒
	   ▒▒▒▒  ▒▒    ▒▒        ▒▒  ▒▒        ▒▒    ▒▒  ▒▒▒▒
	   ▒▒▒▒  ▒▒  ▒▒            ▒▒            ▒▒  ▒▒  ▒▒▒▒
	 ░░▒▒▒▒░░▒▒  ▒▒            ▒▒            ▒▒  ▒▒░░▒▒▒▒
	   ▓▓▓▓▓▓▓▓  ▓▓      ▓▓██  ▓▓  ▓▓██      ▓▓  ▓▓▓▓▓▓▓▓
	     ▒▒▒▒    ▒▒      ████  ▒▒  ████      ▒▒░░  ▒▒▒▒
	       ▒▒  ▒▒▒▒▒▒        ▒▒▒▒▒▒        ▒▒▒▒▒▒  ▒▒
		 ▒▒▒▒▒▒▒▒▒▒▓▓▓▓▓▓▒▒▒▒▒▒▒▒▓▓▒▒▓▓▒▒▒▒▒▒▒▒
		   ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
		     ▒▒▒▒▒▒▒▒▒▒██▒▒▒▒▒▒██▒▒▒▒▒▒▒▒▒▒
		   ▒▒  ▒▒▒▒▒▒▒▒▒▒██████▒▒▒▒▒▒▒▒▒▒  ▒▒
		 ▒▒    ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒    ▒▒
	       ▒▒    ▒▒    ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒    ▒▒    ▒▒
	       ▒▒  ▒▒    ▒▒                  ▒▒    ▒▒  ▒▒
		   ▒▒  ▒▒                      ▒▒  ▒▒


After:

	+----------------------------------------------------+
	|          You made it to the Fe-nish line!          |
	+--------------------------  ------------------------+
				   \/
	     ▒▒          ▒▒▒▒▒▒▒▒      ▒▒▒▒▒▒▒▒          ▒▒
	   ▒▒▒▒  ▒▒    ▒▒        ▒▒  ▒▒        ▒▒    ▒▒  ▒▒▒▒
	   ▒▒▒▒  ▒▒  ▒▒            ▒▒            ▒▒  ▒▒  ▒▒▒▒
	 ░░▒▒▒▒░░▒▒  ▒▒            ▒▒            ▒▒  ▒▒░░▒▒▒▒
	   ▓▓▓▓▓▓▓▓  ▓▓      ▓▓██  ▓▓  ▓▓██      ▓▓  ▓▓▓▓▓▓▓▓
	     ▒▒▒▒    ▒▒      ████  ▒▒  ████      ▒▒░░  ▒▒▒▒
	       ▒▒  ▒▒▒▒▒▒        ▒▒▒▒▒▒        ▒▒▒▒▒▒  ▒▒
		 ▒▒▒▒▒▒▒▒▒▒▓▓▓▓▓▓▒▒▒▒▒▒▒▒▓▓▒▒▓▓▒▒▒▒▒▒▒▒
		   ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
		     ▒▒▒▒▒▒▒▒▒▒██▒▒▒▒▒▒██▒▒▒▒▒▒▒▒▒▒
		   ▒▒  ▒▒▒▒▒▒▒▒▒▒██████▒▒▒▒▒▒▒▒▒▒  ▒▒
		 ▒▒    ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒    ▒▒
	       ▒▒    ▒▒    ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒    ▒▒    ▒▒
	       ▒▒  ▒▒    ▒▒                  ▒▒    ▒▒  ▒▒
		   ▒▒  ▒▒                      ▒▒  ▒▒

Running `cargo clippy` (version 0.1.70) after this commit does not
reveal any new warnings.

Fixes: 571bab2 ("Run clippy --fix")
2023-11-22 02:07:36 +01:00
Matthias Richter
adf7d1b975 chore(watch): update notify dependency to v6
closes #1640
2023-11-17 00:56:02 +01:00
liv
14e423fe53
Merge pull request #1770 from a-rustacean/revert-1761-all-contributors/add-sarupbanskota
Revert "docs: add sarupbanskota as a contributor for doc"
2023-11-16 18:16:46 +01:00
liv
a49f231b5d
Merge pull request #1768 from adwsingh/main
Revert "Add CodeCrafters"
2023-11-16 18:12:34 +01:00
liv
70f472484f docs: revert fancy install aliases 2023-11-14 15:49:52 +01:00
Dilshad
f01f2d13c7
Revert "docs: add sarupbanskota as a contributor for doc" 2023-11-12 22:19:40 +05:30
Bastian Pedersen
3461c4f73d
Reword clippy1 exercise to be more readable 2023-11-12 11:39:14 +01:00
Adwait Kumar Singh
4d6cd0ebb4 Revert "Add CodeCrafters"
This reverts commit dad22169849a4d16d6a74c69a45017dab07677ff.
2023-11-11 16:39:44 -08:00