Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Easy2::post_field_size takes size as u64 instead of usize #596

Open
svenkata9 opened this issue Jan 30, 2025 · 0 comments
Open

Easy2::post_field_size takes size as u64 instead of usize #596

svenkata9 opened this issue Jan 30, 2025 · 0 comments

Comments

@svenkata9
Copy link

Hi Alex,

Thanks for all your great work on curl-rust. Extremely useful to use Easy/Easy2 safe wrappers.

I just noticed that Easy2::post_field_size takes size as u64 instead of usize. Typically Rust's .len() functions output usize, and typically we send a &str or String whose length we have to convert to as u64 to pass to this function in curl-rust.

Is there an issue in taking in usize?
Thanks,

~Sankar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant