From 7dc7c7cb2de9081516abb328107a97044b73362e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edvard=20Th=C3=B6rnros?= Date: Tue, 2 Feb 2021 20:43:21 +0100 Subject: from_type -> empty_with_type --- src/lib.rs | 4 ++-- 1 file 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 -- cgit v1.2.1