You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clearly, the DropText definition above was copied and pasted and wasn't changed properly for the DropFile enum variant. I hope this makes sense!
This is a very minor issue but it confused me a little! I understand that fixing this may require refactoring projects, but it would be worth fixing in the next release of the sdl2 crate.
I would fix it with a PR, but it's not really worth it just to change a single line :)
Thanks, Dylan
Source: event.rs, line 895.
The text was updated successfully, but these errors were encountered:
I think it still warrants a PR, but not in the sense that you are thinking of. Changing this field would require refactoring, however, adding a doc comment saying something along the lines of "due to backward compatbility issues, this field was not renamed, but its actual name should be "text", because it holds the text being dropped".
The
sdl2::event::Event::TextDrop
enum defines an enum with the following definition:However, the actual definition should instead read:
Clearly, the
DropText
definition above was copied and pasted and wasn't changed properly for theDropFile
enum variant. I hope this makes sense!This is a very minor issue but it confused me a little! I understand that fixing this may require refactoring projects, but it would be worth fixing in the next release of the
sdl2
crate.I would fix it with a PR, but it's not really worth it just to change a single line :)
Thanks, Dylan
Source:
event.rs
, line895
.The text was updated successfully, but these errors were encountered: