[PR #857] [MERGED] Fix clippy comparison chain warning #1115

Closed
opened 2026-02-27 20:01:13 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/librespot-org/librespot/pull/857
Author: @JasonLG1979
Created: 10/2/2021
Status: Merged
Merged: 10/4/2021
Merged by: @roderickvd

Base: devHead: fix-comparison-chain-clippy-warning


📝 Commits (2)

  • d117924 Fix clippy comparison chain warning
  • 87f1ecf A little more last minute clean up

📊 Changes

1 file changed (+13 additions, -11 deletions)

View changed files

📝 playback/src/audio_backend/alsa.rs (+13 -11)

📄 Description

Kinda silly in this particular case, but clippy complains that "if chain can be rewritten with match".


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/librespot-org/librespot/pull/857 **Author:** [@JasonLG1979](https://github.com/JasonLG1979) **Created:** 10/2/2021 **Status:** ✅ Merged **Merged:** 10/4/2021 **Merged by:** [@roderickvd](https://github.com/roderickvd) **Base:** `dev` ← **Head:** `fix-comparison-chain-clippy-warning` --- ### 📝 Commits (2) - [`d117924`](https://github.com/librespot-org/librespot/commit/d1179241f6491011d93841fe884b77251ac0a193) Fix clippy comparison chain warning - [`87f1ecf`](https://github.com/librespot-org/librespot/commit/87f1ecf0f56b21f58804fb03973e378cfcaf57ff) A little more last minute clean up ### 📊 Changes **1 file changed** (+13 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `playback/src/audio_backend/alsa.rs` (+13 -11) </details> ### 📄 Description Kinda silly in this particular case, but clippy complains that "`if` chain can be rewritten with `match`". --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 20:01:13 +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#1115
No description provided.