diff options
| author | Edvard Thörnros <edvard.thornros@gmail.com> | 2021-02-02 20:43:21 +0100 |
|---|---|---|
| committer | Edvard Thörnros <edvard.thornros@gmail.com> | 2021-02-02 20:43:21 +0100 |
| commit | 7dc7c7cb2de9081516abb328107a97044b73362e (patch) | |
| tree | 4eeb6dddcda13451ad0a55d1628c74aa4e832827 | |
| parent | e49df17d1159507e50434d9d3f866a0c41dd59b9 (diff) | |
| download | sylt-7dc7c7cb2de9081516abb328107a97044b73362e.tar.gz | |
from_type -> empty_with_type
| -rw-r--r-- | src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |
