desugars operator overloading
fix returns
bendn 8 days ago
parent 5ac69b7 · commit ec73f37
-rw-r--r--Cargo.toml4
-rw-r--r--src/lib.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/Cargo.toml b/Cargo.toml
index f8c3546..13c77d7 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,10 +1,10 @@
[package]
name = "lower-macros"
-version = "0.2.11"
+version = "0.2.12"
authors = ["bend-n <[email protected]>"]
description = "desugar math where the compiler wont"
edition = "2024"
-repository = "https://github.com/bend-n/lower.git"
+repository = "https://git.bendn.org/lower"
license = "MIT"
[dependencies]
diff --git a/src/lib.rs b/src/lib.rs
index 12b883a..c5a0f39 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -284,7 +284,7 @@ fn walk(sub: &impl Sub, e: Expr) -> TokenStream {
}
Expr::Return(ExprReturn { expr, .. }) => {
let expr = expr.map(|x| walk(*x));
- quote!(return #expr;)
+ quote!(return #expr)
}
Expr::Try(ExprTry { expr, .. }) => {
let expr = walk(*expr);