Skip to content

Commit

Permalink
update axum to 0.8.1, and fix clippy error
Browse files Browse the repository at this point in the history
  • Loading branch information
getong committed Jan 14, 2025
1 parent cbb6a24 commit 0f51d1b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async-std = { version = "1.6.0", features = ["attributes"] }
serde = { version = "1.0", features = ["derive"] }

# Axum
axum = "0.7.4"
axum = "0.8.1"

# Rocket dependencies
rocket = "0.5.0-rc.2"
Expand Down
8 changes: 2 additions & 6 deletions src/ssr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ where
let mut fn_map: HashMap<String, v8::Local<v8::Function>> = HashMap::new();

if let Some(props) = object.get_own_property_names(scope, Default::default()) {
fn_map = match Some(props)
fn_map = Some(props)
.iter()
.enumerate()
.map(
Expand Down Expand Up @@ -145,11 +145,7 @@ where
},
)
// TODO: collect directly the values into a map
.collect()
{
Ok(val) => val,
Err(err) => return Err(err),
}
.collect::<Result<HashMap<_, _>, SsrError>>()?
}

Ok(Ssr {
Expand Down

0 comments on commit 0f51d1b

Please sign in to comment.