Skip to content

Commit b907143

Browse files
authored
feat: bump edition (#104)
1 parent 30ccd74 commit b907143

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "rustac-py"
33
version = "0.6.0"
4-
edition = "2021"
4+
edition = "2024"
55
publish = false
66

77
[lib]

src/walk.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ type WalkStep = (Value, Vec<Container>, VecDeque<Item>);
4040

4141
async fn next_walk(nodes: Arc<Mutex<VecDeque<Node>>>) -> PyResult<Json<WalkStep>> {
4242
let mut nodes = nodes.lock().await;
43-
if let Some(node) = nodes.pop_front() {
43+
match nodes.pop_front() { Some(node) => {
4444
let mut node = node.resolve().await.map_err(Error::from)?;
4545
let items = std::mem::take(&mut node.items);
4646
let mut children = Vec::with_capacity(node.children.len());
@@ -49,7 +49,7 @@ async fn next_walk(nodes: Arc<Mutex<VecDeque<Node>>>) -> PyResult<Json<WalkStep>
4949
nodes.push_back(child);
5050
}
5151
Ok(Json((node.value.into(), children, items)))
52-
} else {
52+
} _ => {
5353
Err(PyStopAsyncIteration::new_err("done walking"))
54-
}
54+
}}
5555
}

0 commit comments

Comments
 (0)