Skip to content

const PACKED_WIDTH: usize = size_of::<u32>(); not found in this scope #3461

@sebCS222

Description

@sebCS222

Bug Description

After upgrading to sqlx 0.8.1 from 0.6 I run into an error in .cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-postgres-0.8.1/src/types/cube.rs:307:33 I correct it by importing: use std::mem::size_of; in cube.rs.

Minimal Reproduction

impl Header {
const PACKED_WIDTH: usize = size_of::();

Info

  • SQLx version: 0.8.1
  • SQLx features enabled: sqlx = { version = "0.8.1", features = ["runtime-tokio-rustls", "postgres"] }
  • Database server and version: Postgres 14
  • Operating system: WSL2 Ubuntu 22.04
  • rustc --version: 1.77.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions