Skip to content

Commit

Permalink
fix: fixed anyhow and thiserror version
Browse files Browse the repository at this point in the history
  • Loading branch information
hpp2334 committed Mar 7, 2024
1 parent a731acc commit bec28d3
Show file tree
Hide file tree
Showing 3 changed files with 69 additions and 77 deletions.
126 changes: 63 additions & 63 deletions rust-libs/Cargo.lock

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

4 changes: 2 additions & 2 deletions rust-libs/ease-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ num-derive = "0.2"
tracing-android = "0.2.0"
bytes = "1.5.0"
async-trait = "0.1"
thiserror = "1.0"
anyhow = "1.0"
thiserror = "1.0.57"
anyhow = "1.0.80"
urlencoding = "2.1.3"
unicode-segmentation = "1.10.1"
getset = "0.1.2"
Expand Down
16 changes: 4 additions & 12 deletions rust-libs/ease-client/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,26 +273,17 @@ pub fn seek_music(arg: ArgSeekMusic) -> ApiRet {
}

pub fn set_current_music_position_for_player_internal(arg: u64) -> ApiRet {
let ret = call_controller(
controller_set_current_music_position_for_player_internal,
arg,
)?;
let ret = call_controller(controller_set_current_music_position_for_player_internal, arg)?;
Ok(SyncReturn(ret))
}

pub fn update_current_music_total_duration_for_player_internal(arg: u64) -> ApiRet {
let ret = call_controller(
controller_update_current_music_total_duration_for_player_internal,
arg,
)?;
let ret = call_controller(controller_update_current_music_total_duration_for_player_internal, arg)?;
Ok(SyncReturn(ret))
}

pub fn update_current_music_playing_for_player_internal(arg: bool) -> ApiRet {
let ret = call_controller(
controller_update_current_music_playing_for_player_internal,
arg,
)?;
let ret = call_controller(controller_update_current_music_playing_for_player_internal, arg)?;
Ok(SyncReturn(ret))
}

Expand Down Expand Up @@ -495,3 +486,4 @@ pub fn test_connection(arg: ArgUpsertStorage) -> ApiRet {
let ret = call_controller(controller_test_connection, arg)?;
Ok(SyncReturn(ret))
}

0 comments on commit bec28d3

Please sign in to comment.