diff options
| author | Zeyla Hellyer <[email protected]> | 2017-04-13 20:45:56 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-04-19 14:53:32 -0700 |
| commit | 3f03f9adc97315bb61a5c71f52365306cb8e2d1a (patch) | |
| tree | 8fe0b518d1450b0657cfb75f56251fd90120807e /tests/test_colour.rs | |
| parent | Update the way errors are handled in dispatch (diff) | |
| download | serenity-3f03f9adc97315bb61a5c71f52365306cb8e2d1a.tar.xz serenity-3f03f9adc97315bb61a5c71f52365306cb8e2d1a.zip | |
Deprecate methods prefixed with `get_`
A lot of structs - such as `Guild` or `ChannelId` - have methods with
prefixes of `get_`, which are generally discouraged. To fix this,
deprecate them and remove them in v0.3.0.
Diffstat (limited to 'tests/test_colour.rs')
| -rw-r--r-- | tests/test_colour.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/test_colour.rs b/tests/test_colour.rs index 110097a..833f4e0 100644 --- a/tests/test_colour.rs +++ b/tests/test_colour.rs @@ -18,23 +18,23 @@ fn from_rgb() { } #[test] -fn get_r() { - assert_eq!(Colour::new(0x336123).get_r(), 0x33); +fn r() { + assert_eq!(Colour::new(0x336123).r(), 0x33); } #[test] -fn get_g() { - assert_eq!(Colour::new(0x336123).get_g(), 0x61); +fn g() { + assert_eq!(Colour::new(0x336123).g(), 0x61); } #[test] -fn get_b() { - assert_eq!(Colour::new(0x336123).get_b(), 0x23); +fn b() { + assert_eq!(Colour::new(0x336123).b(), 0x23); } #[test] -fn get_tuple() { - assert_eq!(Colour::new(0x336123).get_tuple(), (0x33, 0x61, 0x23)); +fn tuple() { + assert_eq!(Colour::new(0x336123).tuple(), (0x33, 0x61, 0x23)); } #[test] |