mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 16:11:05 +00:00
Use same fmt and clippy configs as in Substrate (#7611)
* Use same rustfmt.toml as Substrate Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * format format file Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Format with new config Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Add Substrate Clippy config Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Print Clippy version in CI Otherwise its difficult to reproduce locally. Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Make fmt happy Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> * Update node/core/pvf/src/error.rs Co-authored-by: Tsvetomir Dimitrov <tsvetomir@parity.io> * Update node/core/pvf/src/error.rs Co-authored-by: Tsvetomir Dimitrov <tsvetomir@parity.io> --------- Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io> Co-authored-by: Tsvetomir Dimitrov <tsvetomir@parity.io>
This commit is contained in:
committed by
GitHub
parent
ac435c96cf
commit
342d720573
@@ -67,14 +67,13 @@
|
||||
//!
|
||||
//! Here's the rundown on how fields work:
|
||||
//!
|
||||
//! - Fields on spans and events are specified using the `syntax field_name =
|
||||
//! field_value`.
|
||||
//! - Local variables may be used as field values without an assignment, similar to
|
||||
//! struct initializers.
|
||||
//! - The `?` sigil is shorthand that specifies a field should be recorded using its
|
||||
//! `fmt::Debug` implementation.
|
||||
//! - The `%` sigil operates similarly, but indicates that the value should be
|
||||
//! recorded using its `fmt::Display` implementation.
|
||||
//! - Fields on spans and events are specified using the `syntax field_name = field_value`.
|
||||
//! - Local variables may be used as field values without an assignment, similar to struct
|
||||
//! initializers.
|
||||
//! - The `?` sigil is shorthand that specifies a field should be recorded using its `fmt::Debug`
|
||||
//! implementation.
|
||||
//! - The `%` sigil operates similarly, but indicates that the value should be recorded using its
|
||||
//! `fmt::Display` implementation.
|
||||
//!
|
||||
//! For full details, again see [the tracing
|
||||
//! docs](https://docs.rs/tracing/latest/tracing/index.html#recording-fields).
|
||||
|
||||
Reference in New Issue
Block a user