Skip to content

Commit 0f51d1b

Browse files
committed
update axum to 0.8.1, and fix clippy error
1 parent cbb6a24 commit 0f51d1b

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

Diff for: Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ async-std = { version = "1.6.0", features = ["attributes"] }
4040
serde = { version = "1.0", features = ["derive"] }
4141

4242
# Axum
43-
axum = "0.7.4"
43+
axum = "0.8.1"
4444

4545
# Rocket dependencies
4646
rocket = "0.5.0-rc.2"

Diff for: src/ssr.rs

+2-6
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ where
107107
let mut fn_map: HashMap<String, v8::Local<v8::Function>> = HashMap::new();
108108

109109
if let Some(props) = object.get_own_property_names(scope, Default::default()) {
110-
fn_map = match Some(props)
110+
fn_map = Some(props)
111111
.iter()
112112
.enumerate()
113113
.map(
@@ -145,11 +145,7 @@ where
145145
},
146146
)
147147
// TODO: collect directly the values into a map
148-
.collect()
149-
{
150-
Ok(val) => val,
151-
Err(err) => return Err(err),
152-
}
148+
.collect::<Result<HashMap<_, _>, SsrError>>()?
153149
}
154150

155151
Ok(Ssr {

0 commit comments

Comments
 (0)