Skip to content

Commit 36588c6

Browse files
authored
Merge pull request twitter#452 from pouriya/refactor-dr_transform
Refactor `navi/dr_transform`
2 parents e8147d8 + ee5e7fc commit 36588c6

File tree

3 files changed

+136
-170
lines changed

3 files changed

+136
-170
lines changed

navi/dr_transform/src/all_config.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,5 @@ pub struct RenamedFeatures {
4444
}
4545

4646
pub fn parse(json_str: &str) -> Result<AllConfig, Error> {
47-
let all_config: AllConfig = serde_json::from_str(json_str)?;
48-
return std::result::Result::Ok(all_config);
47+
serde_json::from_str(json_str)
4948
}

0 commit comments

Comments
 (0)