Skip to content
0
  • Home
  • Piero Bosio
  • Blog
  • World
  • Fediverso
  • News
  • Categories
  • Old Web Site
  • Recent
  • Popular
  • Tags
  • Users
  • Home
  • Piero Bosio
  • Blog
  • World
  • Fediverso
  • News
  • Categories
  • Old Web Site
  • Recent
  • Popular
  • Tags
  • Users
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone
willglynn@hachyderm.ioundefined

Will Glynn

@willglynn@hachyderm.io
About
Posts
1
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

View Original

Posts

Recent Best Controversial

  • *rubbing eyes* Anyone use "Rocket"?
    willglynn@hachyderm.ioundefined willglynn@hachyderm.io

    @mcc It looks like you're passing a reference to an array (`&[u8; N]`) where the signature expects a reference to a slice (`&[u8]`). Try adding an explicit `.as_slice()` to the array expression.

    In general this shouldn't be necessary because `[u8; N]` implements `AsRef<[u8]>`. This is what `ByteStream`'s docs describe as the requirement for the type inside the stream, so… ¯\_(ツ)_/¯

    (Caveats: I don't use Rocket, I have no idea what's happening inside that macro, and I can't see the call site.)

    Uncategorized
  • Login

  • Login or register to search.
  • First post
    Last post