summaryrefslogtreecommitdiff
path: root/src/compute
diff options
context:
space:
mode:
Diffstat (limited to 'src/compute')
-rw-r--r--src/compute/table.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compute/table.rs b/src/compute/table.rs
index f11eacfc..75effd60 100644
--- a/src/compute/table.rs
+++ b/src/compute/table.rs
@@ -270,7 +270,7 @@ impl<V> SpannedEntry<V> {
/// Create an entry with the same span for key and value.
pub fn val(val: Spanned<V>) -> Self {
- Self { key: Span::ZERO, val }
+ Self { key: val.span, val }
}
/// Convert from `&SpannedEntry<T>` to `SpannedEntry<&T>`