Skip to content

Commit

Permalink
Fix clippy and compilation issues in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
scx1332 committed Nov 29, 2023
1 parent 2e01d63 commit 9e2715c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion agent/provider/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ name = "ya-provider"
path = "src/main.rs"

[dependencies]
ya-agreement-utils = { workspace=true }
ya-agreement-utils = { workspace = true }
ya-manifest-utils = { version = "0.2" }
ya-client = { version = "0.7", features = ['cli'] }
ya-client-model = "0.5"
Expand Down
2 changes: 1 addition & 1 deletion core/gsb-api/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ mod tests {
#[test_case(r#"{ "id": "some", "error": {} }"#, Frame::Close(Some(CloseReason {
code: CloseCode::Policy,
description: Some("Failed to read response. Err: Missing 'payload' and 'error' fields. Id: some.".to_string()) }));
"Close when error empty (error needs at least top level error name field)"
"Close when error empty - error needs at least top level error name field"
)]
#[actix_web::test]
#[serial]
Expand Down
2 changes: 1 addition & 1 deletion exe-unit/examples/transfer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ async fn main() -> anyhow::Result<()> {

let agreement = Agreement {
inner: AgreementView {
agreement_id: String::new(),
id: String::new(),
json: Value::Null,
},
task_package: Some(format!(
Expand Down
2 changes: 1 addition & 1 deletion exe-unit/examples/transfer_abort.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ async fn main() -> anyhow::Result<()> {

let agreement = Agreement {
inner: AgreementView {
agreement_id: String::new(),
id: String::new(),
json: serde_json::Value::Null,
},
task_package: None,
Expand Down

0 comments on commit 9e2715c

Please sign in to comment.