Skip to content

Commit

Permalink
Fix clippy warnings; fix sed script
Browse files Browse the repository at this point in the history
  • Loading branch information
annenkov committed Sep 6, 2023
1 parent 9b705e6 commit 120cbbb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ jobs:
mv $PROJECT_NAME ${{ runner.temp }}/
sed -i "s/root/Concordium <[email protected]>/g" ${{ runner.temp }}/$PROJECT_NAME/Cargo.toml
sed -i "s/version = \"8.0\", default-features = false/path = \"..\/..\/concordium-std\", version = \"8.0\", default-features = false/g" ${{ runner.temp }}/$PROJECT_NAME/Cargo.toml
sed -i "s/version = \"5.0\", default-features = false/path = \"..\/..\/concordium-cis2\", version = \"5.0\" default-features = false/g" ${{ runner.temp }}/$PROJECT_NAME/Cargo.toml
sed -i "s/version = \"5.0\", default-features = false/path = \"..\/..\/concordium-cis2\", version = \"5.0\", default-features = false/g" ${{ runner.temp }}/$PROJECT_NAME/Cargo.toml
diff ${{ runner.temp }}/$PROJECT_NAME/Cargo.toml examples/credential-registry/Cargo.toml
diff ${{ runner.temp }}/$PROJECT_NAME/src/lib.rs examples/credential-registry/src/lib.rs
Expand Down
2 changes: 1 addition & 1 deletion examples/credential-registry/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1595,7 +1595,7 @@ fn contract_set_implementor<S: HasStateApi>(
host: &mut impl HasHost<State<S>, StateApiType = S>,
) -> ContractResult<()> {
// Check that only the issuer is authorized to set implementors.
ensure!(sender_is_issuer(ctx, &host.state()), ContractError::NotAuthorized);
ensure!(sender_is_issuer(ctx, host.state()), ContractError::NotAuthorized);
// Parse the parameter.
let params: SetImplementorsParams = ctx.parameter_cursor().get()?;
// Update the implementors in the state
Expand Down
2 changes: 1 addition & 1 deletion templates/credential-registry/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1695,7 +1695,7 @@ fn contract_set_implementor<S: HasStateApi>(
host: &mut impl HasHost<State<S>, StateApiType = S>,
) -> ContractResult<()> {
// Check that only the issuer is authorized to set implementors.
ensure!(sender_is_issuer(ctx, &host.state()), ContractError::NotAuthorized);
ensure!(sender_is_issuer(ctx, host.state()), ContractError::NotAuthorized);
// Parse the parameter.
let params: SetImplementorsParams = ctx.parameter_cursor().get()?;
// Update the implementors in the state
Expand Down

0 comments on commit 120cbbb

Please sign in to comment.