Skip to content

Commit

Permalink
Upgrade to 1.67 Rust
Browse files Browse the repository at this point in the history
- upgrade Cargo deps
  • Loading branch information
tyranron committed Jan 28, 2023
1 parent 4482bbc commit 241d406
Show file tree
Hide file tree
Showing 20 changed files with 172 additions and 74 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ jobs:
- name: Install linux dependencies
run: |
apt update
apt install -y curl xz-utils make clang
apt install -y clang curl make xz-utils
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
Expand Down Expand Up @@ -1033,7 +1033,8 @@ jobs:
ver=${{ steps.release.outputs.group2 }})"
>> $GITHUB_OUTPUT

- uses: softprops/action-gh-release@v1
- name: Create GitHub release
uses: softprops/action-gh-release@v1
with:
name: ${{ steps.release.outputs.group1 }} ${{ steps.release.outputs.group2 }}
body: |
Expand Down
107 changes: 55 additions & 52 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ tracerr = "0.3"
url = "2.3"

[target.'cfg(target_os = "android")'.dependencies]
android_logger = "0.11"
android_logger = "0.12"

[target.'cfg(any(target_os = "ios", target_os = "linux", target_os = "macos", target_os = "windows"))'.dependencies]
simple_logger = "4.0"
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ IMAGE_NAME := $(strip \
$(if $(call eq,$(image),medea-demo-edge),medea-demo,\
$(or $(image),medea-control-api-mock)))

RUST_VER := 1.66
RUST_VER := 1.67
CHROME_VERSION := 104.0
FIREFOX_VERSION := 107.0.1-driver0.32.0

CARGO_NDK_VER := 2.8.0-ndkr23b-rust$(RUST_VER)
CARGO_NDK_VER := 2.12.4-ndkr23b-rust$(RUST_VER)
ANDROID_TARGETS := aarch64-linux-android \
armv7-linux-androideabi \
i686-linux-android \
Expand Down
5 changes: 2 additions & 3 deletions crates/medea-macro/src/caused.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@ use synstructure::{BindStyle, Structure};
/// - otherwise returns `None`.
/// 3. Generate implementation of `Caused` trait for this enum with generated
/// methods from step 1 and 2.
#[allow(clippy::needless_pass_by_value)]
pub(crate) fn derive(mut s: Structure<'_>) -> Result<TokenStream> {
let error_type = error_type(&s)?;
pub(crate) fn derive(s: &mut Structure<'_>) -> Result<TokenStream> {
let error_type = error_type(s)?;

let cause_body = s.bind_with(|_| BindStyle::Move).each_variant(|v| {
v.bindings().iter().find(|&bi| is_caused(bi)).map_or_else(
Expand Down

1 comment on commit 241d406

@tyranron
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alexlapa please, upgrade to 3.7 Flutter and 3.1 dart-sys in a separate PR.

Please sign in to comment.