ci: install libspeechd-dev and fix new clippy lints (#252)

* ci: install libspeechd-dev

* Fix new clippy lints for rust 1.51.0
This commit is contained in:
Emil Ernerfeldt 2021-03-25 22:18:03 +01:00 committed by GitHub
parent 8e7d4ff4fd
commit fe92a9826b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 10 deletions

View file

@ -19,6 +19,7 @@ jobs:
profile: minimal
toolchain: stable
override: true
- run: sudo apt-get install libspeechd-dev
- uses: actions-rs/cargo@v1
with:
command: check
@ -114,6 +115,7 @@ jobs:
toolchain: stable
override: true
- run: rustup component add clippy
- run: sudo apt-get install libspeechd-dev
- uses: actions-rs/cargo@v1
with:
command: clippy

View file

@ -619,7 +619,7 @@ impl Visuals {
/// Show small toggle-button for light and dark mode.
#[must_use]
pub fn light_dark_small_toggle_button(&self, ui: &mut crate::Ui) -> Option<Self> {
#![allow(clippy::collapsible_if)]
#![allow(clippy::collapsible_else_if)]
if self.dark_mode {
if ui
.add(Button::new("").frame(false))

View file

@ -342,20 +342,20 @@ impl Widget for Label {
}
}
impl Into<Label> for &str {
fn into(self) -> Label {
Label::new(self)
impl From<&str> for Label {
fn from(s: &str) -> Label {
Label::new(s)
}
}
impl Into<Label> for &String {
fn into(self) -> Label {
Label::new(self)
impl From<&String> for Label {
fn from(s: &String) -> Label {
Label::new(s)
}
}
impl Into<Label> for String {
fn into(self) -> Label {
Label::new(self)
impl From<String> for Label {
fn from(s: String) -> Label {
Label::new(s)
}
}