[GH-ISSUE #723] Replace deprecated protobuf function #400

Closed
opened 2026-02-27 19:30:25 +03:00 by kerem · 0 comments
Owner

Originally created by @Johannesd3 on GitHub (May 8, 2021).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/723

After #714 we're getting warnings like this one:

warning: use of deprecated function `protobuf::parse_from_bytes`: Use Message::parse_from_bytes instead
   --> core/src/connection/mod.rs:149:43
    |
149 |             let welcome_data: APWelcome = protobuf::parse_from_bytes(data.as_ref())?;
    |                                           ^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: `#[warn(deprecated)]` on by default

It shouldn't be hard to fix these warnings by following the instructions.

Originally created by @Johannesd3 on GitHub (May 8, 2021). Original GitHub issue: https://github.com/librespot-org/librespot/issues/723 After #714 we're getting warnings like this one: ``` warning: use of deprecated function `protobuf::parse_from_bytes`: Use Message::parse_from_bytes instead --> core/src/connection/mod.rs:149:43 | 149 | let welcome_data: APWelcome = protobuf::parse_from_bytes(data.as_ref())?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: `#[warn(deprecated)]` on by default ``` It shouldn't be hard to fix these warnings by following the instructions.
kerem 2026-02-27 19:30:25 +03:00
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/librespot#400
No description provided.