launchbadge / sqlx

🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, and SQLite.
Apache License 2.0
13.48k stars 1.28k forks source link

error[E0425]: cannot find function `size_of` in this scope #3462

Closed yurivict closed 2 months ago

yurivict commented 2 months ago

Bug Description

error[E0425]: cannot find function `size_of` in this scope
   --> sqlx-postgres/src/types/cube.rs:307:33
    |
307 |     const PACKED_WIDTH: usize = size_of::<u32>();
    |                                 ^^^^^^^ not found in this scope
    |
help: consider importing one of these items
    |
1   + use core::mem::size_of;
    |
1   + use std::mem::size_of;
    |

Info

abonander commented 2 months ago

It's literally the one before this one: https://github.com/launchbadge/sqlx/issues/3461