Commit 3e7c887
authored
[Variant] Minor: use From impl to make conversion infallable (apache#8068)
# Which issue does this PR close?
- Follow on to apache#8044
# Rationale for this change
@scovich had a good suggestion here
https://github.com/apache/arrow-rs/pull/8044/files#r2257256848:
> value.into() makes clear that the conversion is infallible?
# What changes are included in this PR?
Use `From` impl to make it clear the conversion is infallible and can
not lose precision
# Are these changes tested?
Covered by existing tests
# Are there any user-facing changes?
No1 parent c25c5a7 commit 3e7c887
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1155 | 1155 | | |
1156 | 1156 | | |
1157 | 1157 | | |
1158 | | - | |
| 1158 | + | |
1159 | 1159 | | |
1160 | 1160 | | |
1161 | 1161 | | |
| |||
1166 | 1166 | | |
1167 | 1167 | | |
1168 | 1168 | | |
1169 | | - | |
| 1169 | + | |
1170 | 1170 | | |
1171 | 1171 | | |
1172 | 1172 | | |
| |||
1176 | 1176 | | |
1177 | 1177 | | |
1178 | 1178 | | |
1179 | | - | |
| 1179 | + | |
1180 | 1180 | | |
1181 | 1181 | | |
1182 | 1182 | | |
| |||
1188 | 1188 | | |
1189 | 1189 | | |
1190 | 1190 | | |
1191 | | - | |
| 1191 | + | |
1192 | 1192 | | |
1193 | 1193 | | |
1194 | 1194 | | |
| |||
0 commit comments