Skip to content
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

chore: enable format_code_in_doc_comments for rustfmt #467

Merged
merged 1 commit into from
Nov 12, 2024
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
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
Loading