[GH-ISSUE #195] Not building? #102

Closed
opened 2026-03-02 23:44:33 +03:00 by kerem · 2 comments
Owner

Originally created by @hernangonzalez on GitHub (May 11, 2023).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/195

Describe the bug
cargo install fails with the following message

108 | self.spotify.seek_track(position_ms, device_id).await?
| ---------- ^^^^^^^^^^^ expected Duration, found u32
| |
| arguments to this method are incorrect
|

To Reproduce
Just run cargo install, build will fail.

Environment

  • OS: MacOS
  • Application version: N/A
  • Application features: if applicable, provide cargo features used to build spotify_player

Additional context
rustc 1.69.0 (84c898d65 2023-04-16)

Originally created by @hernangonzalez on GitHub (May 11, 2023). Original GitHub issue: https://github.com/aome510/spotify-player/issues/195 **Describe the bug** `cargo install` fails with the following message > 108 | self.spotify.seek_track(position_ms, device_id).await? | ---------- ^^^^^^^^^^^ expected `Duration`, found `u32` | | | arguments to this method are incorrect | **To Reproduce** Just run cargo install, build will fail. **Environment** - OS: MacOS - Application version: N/A - Application features: if applicable, provide [cargo features](https://doc.rust-lang.org/cargo/reference/features.html) used to build `spotify_player` **Additional context** `rustc 1.69.0 (84c898d65 2023-04-16)`
kerem 2026-03-02 23:44:33 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@aome510 commented on GitHub (May 11, 2023):

cargo install by default doesn't take into account Cargo.lock file. Related issue: https://github.com/aome510/spotify-player/issues/116#issuecomment-1410862311

This can be fixed with --locked flag.

<!-- gh-comment-id:1544212013 --> @aome510 commented on GitHub (May 11, 2023): `cargo install` by default doesn't take into account `Cargo.lock` file. Related issue: https://github.com/aome510/spotify-player/issues/116#issuecomment-1410862311 This can be fixed with `--locked` flag.
Author
Owner

@aome510 commented on GitHub (May 14, 2023):

Will close this issue for now as I assume --locked should fix it. Feel free to re-open if the issue still persists.

<!-- gh-comment-id:1546932311 --> @aome510 commented on GitHub (May 14, 2023): Will close this issue for now as I assume `--locked` should fix it. Feel free to re-open if the issue still persists.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-player#102
No description provided.