Skip to content

Bug: Sample Code Doesn't Work #683

Open
@HuakunShen

Description

@HuakunShen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions