Skip to content

Commit

Permalink
chore: enable format_code_in_doc_comments for rustfmt (#467)
Browse files Browse the repository at this point in the history
  • Loading branch information
Serial-ATA authored Nov 12, 2024
1 parent 7221994 commit 2c27ee6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
3 changes: 0 additions & 3 deletions blueprint-test-utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ pub async fn inject_test_keys<P: AsRef<Path>>(
/// # Errors
/// - Fails if the given index is out of bounds
/// - May fail if the keystore path cannot be created or accessed
///
fn inject_anvil_key<P: AsRef<Path>>(keystore_path: P, seed: &str) -> color_eyre::Result<()> {
let keystore = GenericKeyStore::<parking_lot::RawRwLock>::Fs(FilesystemKeystore::open(
keystore_path.as_ref(),
Expand Down Expand Up @@ -257,7 +256,6 @@ fn inject_anvil_key<P: AsRef<Path>>(keystore_path: P, seed: &str) -> color_eyre:
/// # Errors
/// - Fails if the given index is out of bounds
/// - May fail if the keystore path cannot be created or accessed
///
fn inject_tangle_key<P: AsRef<Path>>(keystore_path: P, name: &str) -> color_eyre::Result<()> {
let keystore = GenericKeyStore::<parking_lot::RawRwLock>::Fs(FilesystemKeystore::open(
keystore_path.as_ref(),
Expand Down Expand Up @@ -348,7 +346,6 @@ fn inject_tangle_key<P: AsRef<Path>>(keystore_path: P, name: &str) -> color_eyre
///
/// # Errors
/// - May fail if the keystore path cannot be created or accessed
///
pub fn inject_random_key<P: AsRef<Path>>(keystore_path: P) -> color_eyre::Result<()> {
let keystore = GenericKeyStore::<parking_lot::RawRwLock>::Fs(FilesystemKeystore::open(
keystore_path.as_ref(),
Expand Down
1 change: 1 addition & 0 deletions rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
format_code_in_doc_comments = true
4 changes: 0 additions & 4 deletions sdk/src/utils/evm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ pub const SIGNATURE_EXPIRY: U256 = U256::from_limbs([86400, 0, 0, 0]);
///
/// # Returns
/// - [`RootProvider<BoxTransport>`] - The provider
///
pub fn get_provider_http(http_endpoint: &str) -> RootProvider<BoxTransport> {
let provider = ProviderBuilder::new()
.with_recommended_fillers()
Expand All @@ -27,7 +26,6 @@ pub fn get_provider_http(http_endpoint: &str) -> RootProvider<BoxTransport> {
///
/// # Returns
/// - [`RootProvider<BoxTransport>`] - The provider
///
pub fn get_wallet_provider_http(
http_endpoint: &str,
wallet: EthereumWallet,
Expand All @@ -47,7 +45,6 @@ pub fn get_wallet_provider_http(
///
/// # Returns
/// - [`RootProvider<BoxTransport>`] - The provider
///
pub async fn get_provider_ws(ws_endpoint: &str) -> RootProvider<BoxTransport> {
let provider = ProviderBuilder::new()
.with_recommended_fillers()
Expand All @@ -68,7 +65,6 @@ pub async fn get_provider_ws(ws_endpoint: &str) -> RootProvider<BoxTransport> {
///
/// # Errors
/// - [`Error::AlloyContract`] - If the call to the contract fails (i.e. the contract doesn't exist at the given address)
///
pub async fn get_slasher_address(
delegation_manager_addr: Address,
http_endpoint: &str,
Expand Down

0 comments on commit 2c27ee6

Please sign in to comment.