Skip to content

Commit

Permalink
Setting AnnotationEntity start to isize, as -1 was returned in payload.
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Fitzgerald committed Oct 19, 2022
1 parent f490e37 commit 10d6a18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data/entity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub struct HashtagEntity {
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq)]
#[cfg_attr(feature = "arbitrary_precision", derive(Eq))]
pub struct AnnotationEntity {
pub start: usize,
pub start: isize,
pub end: usize,
#[cfg(feature = "arbitrary_precision")]
pub probability: Number,
Expand Down

0 comments on commit 10d6a18

Please sign in to comment.