Fix type of PhotoSize::{width,height} fields: i32 => u32

This commit is contained in:
Waffle 2021-07-04 17:35:36 +03:00
parent 44c1cfd420
commit 5ac43d4ac0
2 changed files with 4 additions and 2 deletions

View file

@ -52,12 +52,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `GetChatAdministrators` output type `ChatMember` => `Vec<ChatMember>` ([#73][pr73])
- `reqwest` dependency bringing `native-tls` in even when `rustls` was selected ([#71][pr71])
- Type of `{Restricted,Kicked}::until_date` fields: `i32` => `i64` ([#74][pr74])
- Type of `PhotoSize::{width,height}` fields: `i32` => `u32` ([#100][pr100])
[pr71]: https://github.com/teloxide/teloxide-core/pull/71
[pr73]: https://github.com/teloxide/teloxide-core/pull/73
[pr75]: https://github.com/teloxide/teloxide-core/pull/75
[pr79]: https://github.com/teloxide/teloxide-core/pull/79
[pr94]: https://github.com/teloxide/teloxide-core/pull/94
[pr100]: https://github.com/teloxide/teloxide-core/pull/100
## [0.2.2] - 2020-03-22

View file

@ -16,10 +16,10 @@ pub struct PhotoSize {
pub file_unique_id: String,
/// Photo width.
pub width: i32,
pub width: u32,
/// Photo height.
pub height: i32,
pub height: u32,
/// File size.
pub file_size: Option<u32>,