Skip to content

Commit 294e371

Browse files
committed
use latest rustc version for rustlib
1 parent 90af876 commit 294e371

File tree

8 files changed

+8
-10
lines changed

8 files changed

+8
-10
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ jobs:
398398
needs: compiler
399399
runs-on: ubuntu-22.04
400400
env:
401-
TOOLCHAIN_VERSION: 1.65.0
401+
TOOLCHAIN_VERSION: 1.81.0
402402
steps:
403403
- uses: actions/checkout@v4
404404

LANGUAGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ Thrift's core protocol is TBinary, supported by all languages except for JavaScr
319319
<td align=left><a href="https://github.com/apache/thrift/blob/master/lib/rs/README.md">Rust</a></td>
320320
<!-- Since -----------------><td>0.11.0</td>
321321
<!-- Build Systems ---------><td><img src="/doc/images/cgrn.png" alt="Yes"/></td><td><img src="/doc/images/cred.png" alt=""/></td>
322-
<!-- Language Levels -------><td>1.65.0</td><td>1.xx.x</td>
322+
<!-- Language Levels -------><td>1.81.0</td><td>1.xx.x</td>
323323
<!-- Field types -----------><td><img src="/doc/images/cred.png" alt=""/></td>
324324
<!-- Low-Level Transports --><td><img src="/doc/images/cred.png" alt=""/></td><td><img src="/doc/images/cred.png" alt=""/></td><td><img src="/doc/images/cgrn.png" alt="Yes"/></td><td><img src="/doc/images/cred.png" alt=""/></td><td><img src="/doc/images/cgrn.png" alt="Yes"/></td><td><img src="/doc/images/cred.png" alt=""/></td>
325325
<!-- Transport Wrappers ----><td><img src="/doc/images/cgrn.png" alt="Yes"/></td><td><img src="/doc/images/cred.png" alt=""/></td><td><img src="/doc/images/cred.png" alt=""/></td><td><img src="/doc/images/cred.png" alt=""/></td>

build/docker/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,6 @@ Last updated: March 5, 2024
196196
| python2 | 2.7.18 | | |
197197
| python3 | 3.8.10 | 3.10.12 | |
198198
| ruby | 2.7.0p0 | 3.0.2p107 | |
199-
| rust | 1.65.0 | 1.65.0 | |
199+
| rust | 1.81.0 | 1.81.0 | |
200200
| smalltalk | | | Not in CI |
201201
| swift | 5.7 | 5.7 | |

build/docker/ubuntu-focal/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ RUN apt-get install -y --no-install-recommends \
274274

275275
USER ${user}
276276
RUN `# Rust dependencies` \
277-
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain 1.65.0 -y
277+
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain 1.81.0 -y
278278
ENV PATH /home/${user}/.cargo/bin:$PATH
279279
USER root
280280

build/docker/ubuntu-jammy/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ RUN apt-get install -y --no-install-recommends \
273273

274274
USER ${user}
275275
RUN `# Rust dependencies` \
276-
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain 1.65.0 -y
276+
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain 1.81.0 -y
277277
ENV PATH /home/${user}/.cargo/bin:$PATH
278278
USER root
279279

lib/rs/src/protocol/compact.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -681,8 +681,6 @@ fn u8_to_type(b: u8) -> crate::Result<TType> {
681681
#[cfg(test)]
682682
mod tests {
683683

684-
use std::i32;
685-
686684
use crate::protocol::{
687685
TFieldIdentifier, TInputProtocol, TListIdentifier, TMapIdentifier, TMessageIdentifier,
688686
TMessageType, TOutputProtocol, TSetIdentifier, TStructIdentifier, TType,
@@ -2818,7 +2816,7 @@ mod tests {
28182816
copy_write_buffer_to_read_buffer!(o_prot);
28192817

28202818
let read_double = i_prot.read_double().unwrap();
2821-
assert!(read_double - double < std::f64::EPSILON);
2819+
assert!((read_double - double).abs() < f64::EPSILON);
28222820
}
28232821

28242822
#[test]

lib/rs/src/transport/framed.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ where
9797
self.buf.resize(buf_capacity, 0);
9898

9999
self.chan.read_exact(&mut self.buf[..message_size])?;
100-
self.cap = message_size as usize;
100+
self.cap = message_size;
101101
self.pos = 0;
102102
}
103103

rust-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.65.0
1+
1.81.0

0 commit comments

Comments
 (0)