Skip to content

Commit 6c3cbc1

Browse files
authored
docs: Add comments to handler methods (#2188)
* add docs * more docs * add more docs * few nits
1 parent f11bbab commit 6c3cbc1

File tree

3 files changed

+132
-44
lines changed

3 files changed

+132
-44
lines changed

bins/revme/src/dir_utils.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@ pub fn find_all_json_tests(path: &Path) -> Vec<PathBuf> {
55
WalkDir::new(path)
66
.into_iter()
77
.filter_map(|e| e.ok())
8-
.filter(|e| e.file_name().to_string_lossy().ends_with(".json"))
8+
.filter(|e| {
9+
e.path()
10+
.extension()
11+
.map(|ext| ext == "json")
12+
.unwrap_or(false)
13+
})
914
.map(DirEntry::into_path)
1015
.collect::<Vec<PathBuf>>()
1116
}

crates/context/interface/src/transaction/transaction_type.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub enum TransactionType {
1313
Eip4844,
1414
/// EIP-7702 Set EOA account code transaction type
1515
Eip7702,
16-
/// Custom type means that transaction trait was extend and have custom types
16+
/// Custom type means that the transaction trait was extended and has custom types
1717
Custom,
1818
}
1919

0 commit comments

Comments
 (0)