Commit Graph

6 Commits

Author SHA1 Message Date
Christopher J. McClellan
75c6303cee Make rust text based approval tests pass
The main method for approval tests are supposed to run 30 days.
Previous impl was using an exclusive range.
Use an inclusive range instead.
2020-12-20 14:06:26 -05:00
rrokkam
2ebbc987fb Make Item::new take Into<String> as a name
This clears a lot of Rust-specific String boilerplate, so it's not
necessary to type String::from("foo") every time we want an item
with name "foo". It also makes the code look more similar to the C#
version of the code.

I am leaving the public struct members in because those are more
similar to the matching code in the other languages' implementations.
2020-07-19 13:51:27 -07:00
rrokkam
c88bdfd53e Implement Display for Item
This is a more idiomatic way of printing the contents of an object
than reaching into its innards. It is also more 1-1 with the original
C# code, which overrides toString for Item.
2020-07-19 13:51:27 -07:00
rrokkam
f21ed2ae13 Make main.rs clippy-clean 2020-07-19 13:51:23 -07:00
rrokkam
a699803ce7 cargo fmt
Standard Rust formatting practice
2020-07-19 13:45:01 -07:00
Michael Gerhaeuser
52d3d5607a Add rust version 2015-10-03 21:14:18 +02:00