8000 Make format command by LasTshaMAN · Pull Request #153 · securesecrets/shade · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Make format command #153

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Dec 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions contracts/airdrop/rustfmt.toml

This file was deleted.

15 changes: 0 additions & 15 deletions contracts/governance/rustfmt.toml

This file was deleted.

15 changes: 0 additions & 15 deletions contracts/initializer/rustfmt.toml

This file was deleted.

15 changes: 0 additions & 15 deletions contracts/micro_mint/rustfmt.toml

This file was deleted.

15 changes: 0 additions & 15 deletions contracts/mint/rustfmt.toml

This file was deleted.

15 changes: 0 additions & 15 deletions contracts/mock_band/rustfmt.toml

This file was deleted.

15 changes: 0 additions & 15 deletions contracts/oracle/rustfmt.toml

This file was deleted.

15 changes: 0 additions & 15 deletions contracts/scrt_staking/rustfmt.toml

This file was deleted.

15 changes: 0 additions & 15 deletions contracts/staking/rustfmt.toml

This file was deleted.

15 changes: 0 additions & 15 deletions contracts/treasury/rustfmt.toml

This file was deleted.

4 changes: 3 additions & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ all: setup $(CONTRACTS); $(call build_wasm,snip20,snip20_reference_impl)
$(CONTRACTS):
$(call build_wasm,$@,$@)


setup: $(compiled_dir) $(checksum_dir)

$(compiled_dir) $(checksum_dir):
mkdir $@

clean:
rm -r $(CONTRACTS)

format:
cargo fmt
15 changes: 15 additions & 0 deletions rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# https://github.com/rust-lang/rustfmt/blob/master/Configurations.md

# Stable configurations
edition = "2018"
max_width = 100
merge_derives = true
use_field_init_shorthand = true
use_try_shorthand = true

# Nightly configurations
imports_layout = "HorizontalVertical"
imports_granularity = "Crate"
overflow_delimited_expr = true
reorder_impl_items = true
version = "Two"
0