Fix build jammy (#44)

* fix: use rust-all

* update deps

* remove rust-all version requirement

* fix: install 1.69.0 in ci.yml

* clippy
This commit is contained in:
Ashley Wulber 2023-06-07 15:46:01 -04:00 committed by GitHub
parent 0745d43136
commit ddc176ea89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 11 additions and 12 deletions

View file

@ -12,7 +12,7 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: install toolchain - name: install toolchain
run: rustup toolchain install stable --component rustfmt run: rustup toolchain install 1.69.0 --component rustfmt
- name: fmt - name: fmt
run: cargo fmt --all --check run: cargo fmt --all --check
@ -24,7 +24,7 @@ jobs:
run: sudo apt-get update && sudo apt-get install lld cmake libexpat1-dev libfontconfig-dev libfreetype-dev pkg-config libxkbcommon-dev run: sudo apt-get update && sudo apt-get install lld cmake libexpat1-dev libfontconfig-dev libfreetype-dev pkg-config libxkbcommon-dev
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: install toolchain - name: install toolchain
run: rustup show run: rustup toolchain install 1.69.0 --component clippy
- name: clippy - name: clippy
run: cargo clippy --all-features run: cargo clippy --all-features

4
Cargo.lock generated
View file

@ -4290,9 +4290,9 @@ dependencies = [
[[package]] [[package]]
name = "sysinfo" name = "sysinfo"
version = "0.29.0" version = "0.29.1"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "02f1dc6930a439cc5d154221b5387d153f8183529b07c19aca24ea31e0a167e1" checksum = "c72130613601f6aad275f8bb9a1d4bf953df8e9c7891029f30e5fdc405ad07c4"
dependencies = [ dependencies = [
"cfg-if", "cfg-if",
"core-foundation-sys", "core-foundation-sys",

View file

@ -224,10 +224,10 @@ impl Page {
has_some = true; has_some = true;
list_column = list_column.add( list_column = list_column.add(
row![ row![
icon(info.icon.to_owned(), 32).style(theme::Svg::Symbolic), icon(info.icon.clone(), 32).style(theme::Svg::Symbolic),
column![ column![
text(info.name.to_owned()), text(info.name.clone()),
text(info.description.to_owned()).size(10) text(info.description.clone()).size(10)
] ]
.spacing(4.0) .spacing(4.0)
.width(Length::Fill), .width(Length::Fill),
@ -906,7 +906,7 @@ where
); );
} }
#[allow(clippy::too_many_lines)] #[allow(clippy::too_many_lines, clippy::needless_match)]
fn on_event( fn on_event(
&mut self, &mut self,
tree: &mut Tree, tree: &mut Tree,

View file

@ -334,7 +334,7 @@ pub fn settings() -> Section<crate::pages::Message> {
let background_fit = cosmic::iced::widget::pick_list( let background_fit = cosmic::iced::widget::pick_list(
&page.fit_options, &page.fit_options,
page.fit_options.get(page.selected_fit as usize).cloned(), page.fit_options.get(page.selected_fit).cloned(),
Message::Fit, Message::Fit,
); );

3
debian/control vendored
View file

@ -5,7 +5,7 @@ Maintainer: Michael Murphy <mmstick@pm.me>
Build-Depends: Build-Depends:
debhelper-compat (=13), debhelper-compat (=13),
just (>= 1.13.0), just (>= 1.13.0),
cargo, rust-all,
cmake, cmake,
libexpat1-dev, libexpat1-dev,
libfontconfig-dev, libfontconfig-dev,
@ -13,7 +13,6 @@ Build-Depends:
lld, lld,
pkg-config, pkg-config,
libxkbcommon-dev, libxkbcommon-dev,
rustc (>= 1.65.0)
Standards-Version: 4.6.2 Standards-Version: 4.6.2
Homepage: https://github.com/pop-os/cosmic-settings Homepage: https://github.com/pop-os/cosmic-settings

View file

@ -1 +1 @@
stable 1.69.0