Skip to content

Commit

Permalink
deploy: 1a2a8c8
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinjqliu committed Feb 21, 2025
1 parent 208164c commit f79dd60
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion api/src/iceberg/transform/truncate.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -852,6 +852,10 @@
<a href="#852" id="852">852</a>
<a href="#853" id="853">853</a>
<a href="#854" id="854">854</a>
<a href="#855" id="855">855</a>
<a href="#856" id="856">856</a>
<a href="#857" id="857">857</a>
<a href="#858" id="858">858</a>
</pre></div><pre class="rust"><code><span class="comment">// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
Expand Down Expand Up @@ -898,7 +902,11 @@

<span class="attr">#[inline]
</span><span class="kw">fn </span>truncate_binary(s: <span class="kw-2">&amp;</span>[u8], width: usize) -&gt; <span class="kw-2">&amp;</span>[u8] {
<span class="kw-2">&amp;</span>s[<span class="number">0</span>..width]
<span class="kw">if </span>s.len() &gt; width {
<span class="kw-2">&amp;</span>s[<span class="number">0</span>..width]
} <span class="kw">else </span>{
s
}
}

<span class="attr">#[inline]
Expand Down

0 comments on commit f79dd60

Please sign in to comment.