aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorLibravatar Guillaume Gomez <guillaume1.gomez@gmail.com>2024-01-03 15:20:50 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2024-01-10 10:42:31 +0100
commit1ee067f2b62a994fe1200fba8898e8909acd0ce0 (patch)
tree151c9f5bbc7e1949b1ce28ee8b55a0c2be947946 /testing
parent50c64bc8650574d1e9243a50477eb7dbd36e36c4 (diff)
downloadaskama-1ee067f2b62a994fe1200fba8898e8909acd0ce0.tar.gz
askama-1ee067f2b62a994fe1200fba8898e8909acd0ce0.tar.bz2
askama-1ee067f2b62a994fe1200fba8898e8909acd0ce0.zip
Revert "Add automatic borrowing to let statement"
This reverts commit 3d52283b74573af509deb3c47cbabf7b7b58b1dd.
Diffstat (limited to '')
-rw-r--r--testing/tests/simple.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/testing/tests/simple.rs b/testing/tests/simple.rs
index 55353f5..f0f0a26 100644
--- a/testing/tests/simple.rs
+++ b/testing/tests/simple.rs
@@ -484,17 +484,3 @@ fn test_num_literals() {
"[90, -90, 90, 2, 56, 240, 10.5, 10.5, 100000000000, 105000000000]",
);
}
-
-#[derive(askama::Template)]
-#[template(source = "{% let word = s %}{{ word }}", ext = "html")]
-struct LetBorrow {
- s: String,
-}
-
-#[test]
-fn test_let_borrow() {
- let template = LetBorrow {
- s: "hello".to_owned(),
- };
- assert_eq!(template.render().unwrap(), "hello")
-}