Skip to content

Commit 0920baf

Browse files
committed
Change Env::vector to return a Value
1 parent a467dbd commit 0920baf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
55

66
## [Unreleased]
77
- Reworked `Vector`, making it iterable.
8+
- Changed `Env::vector` to return a `Value`.
89

910
## [0.13.0] - 2020-03-11
1011
- Added `GlobalRef`, which allows keeping Lisp values around without an `Env`.

src/types/vector.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ impl Env {
133133
Ok(Vector::from_value_unchecked(value, length))
134134
}
135135

136-
pub fn vector<'e, A: IntoLispArgs<'e>>(&'e self, args: A) -> Result<Vector> {
137-
self.call(subr::vector, args).and_then(|v| v.into_rust())
136+
pub fn vector<'e, A: IntoLispArgs<'e>>(&'e self, args: A) -> Result<Value> {
137+
self.call(subr::vector, args)
138138
}
139139
}

0 commit comments

Comments
 (0)