Skip to content

Build error: no method named uninit_mut found for struct BorrowedCursor #67

@Aelerinya

Description

@Aelerinya

I get a build error while trying to install with the installation script.

Cargo version: cargo 1.90.0-nightly (6833aa715 2025-07-13)

Build logs:

    Updating crates.io index
  Installing clipboard-history-server v0.12.0
    Updating crates.io index
     Locking 53 packages to latest compatible versions
   Compiling proc-macro2 v1.0.95
   Compiling unicode-ident v1.0.18
   Compiling libc v0.2.174
   Compiling semver v1.0.26
   Compiling option-ext v0.2.0
   Compiling thiserror v2.0.12
   Compiling radium v0.7.0
   Compiling bitflags v2.9.1
   Compiling rustix v1.0.8
   Compiling tap v1.0.1
   Compiling arrayvec v0.7.6
   Compiling log v0.4.27
   Compiling io-uring v0.7.8
   Compiling linux-raw-sys v0.9.4
   Compiling funty v2.0.0
   Compiling cfg-if v1.0.1
   Compiling bytemuck v1.23.1
   Compiling itoa v1.0.15
   Compiling wyz v0.5.1
   Compiling smallvec v2.0.0-alpha.11
   Compiling env_filter v0.1.3
   Compiling env_logger v0.11.8
   Compiling rustc_version v0.4.1
   Compiling bitvec v1.0.1
   Compiling quote v1.0.40
   Compiling error-stack v0.5.0
   Compiling syn v2.0.104
   Compiling dirs-sys v0.5.0
   Compiling sd-notify v0.4.5
   Compiling dirs v6.0.0
   Compiling thiserror-impl v2.0.12
   Compiling bitcode_derive v0.6.5
   Compiling bitcode v0.6.6
   Compiling clipboard-history-core v0.12.0
error[E0599]: no method named `uninit_mut` found for struct `BorrowedCursor` in the current scope
   --> /home/aelerinya/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/clipboard-history-core-0.12.0/src/utils.rs:465:30
    |
465 |             pread(&file, buf.uninit_mut(), offset)
    |                              ^^^^^^^^^^
    |
help: there is a method `init_mut` with a similar name
    |
465 -             pread(&file, buf.uninit_mut(), offset)
465 +             pread(&file, buf.init_mut(), offset)
    |

For more information about this error, try `rustc --explain E0599`.
error: could not compile `clipboard-history-core` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `clipboard-history-server v0.12.0`, intermediate artifacts can be found at `/tmp/cargo-installsNg5YR`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions