rust-cookbook icon indicating copy to clipboard operation
rust-cookbook copied to clipboard

Bug: Sample Code Doesn't Work

Open HuakunShen opened this issue 2 years ago • 0 comments

On this page, https://rust-lang-nursery.github.io/rust-cookbook/web/clients/download.html#download-a-file-to-a-temporary-directory

The first example doesn't an image, but it doesn't work.

  • Temp file isn't created (or is removed right after).
  • If you download image to current working directory, the image is corrupted. Should be because .text() is used on a binary file.

HuakunShen avatar Jan 15 '23 05:01 HuakunShen