aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorEdvard Thörnros <edvard.thornros@gmail.com>2021-02-02 20:43:21 +0100
committerEdvard Thörnros <edvard.thornros@gmail.com>2021-02-02 20:43:21 +0100
commit7dc7c7cb2de9081516abb328107a97044b73362e (patch)
tree4eeb6dddcda13451ad0a55d1628c74aa4e832827 /src/lib.rs
parente49df17d1159507e50434d9d3f866a0c41dd59b9 (diff)
downloadsylt-7dc7c7cb2de9081516abb328107a97044b73362e.tar.gz
from_type -> empty_with_type
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index bad1a34..15f347c 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -142,7 +142,7 @@ impl From<&Type> for Value {
Type::String => Value::String(Rc::new("".to_string())),
Type::Function(_, _) => Value::Function(
Vec::new(),
- Rc::new(RefCell::new(Block::from_type(ty)))),
+ Rc::new(RefCell::new(Block::empty_with_type(ty)))),
}
}
}
@@ -451,7 +451,7 @@ impl Block {
}
}
- pub fn from_type(ty: &Type) -> Self {
+ pub fn empty_with_type(ty: &Type) -> Self {
let mut block = Block::new("/empty/", Path::new(""), 0);
block.ty = ty.clone();
block