Skip to content

Commit 574720a

Browse files
refactor: replace doc_auto_cfg with doc_cfg (#52)
`doc_auto_cfg` has been merged into `doc_cfg` in rust-lang/rust#138907. Also bumps the Rust nightly version to actually capture the `doc_cfg` change. Fixes: [DEV-1000](https://linear.app/veecle/issue/DEV-1000) --------- Signed-off-by: Julian Schindel <[email protected]>
1 parent 3a7bfaa commit 574720a

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

rust-toolchain-nightly.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[toolchain]
2-
channel = "nightly-2025-08-14"
2+
channel = "nightly-2025-10-01"
33
components = [
44
"clippy",
55
"llvm-tools-preview",

veecle-os-data-support-someip/src/string.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ impl<'a> Parse<'a> for EncodedString<'a> {
313313
let mut slice = reader.remaining_slice();
314314

315315
// Odd-length UTF-16 strings: ignore last byte.
316-
if slice.len() % 2 != 0 {
316+
if !slice.len().is_multiple_of(2) {
317317
slice = &slice[..slice.len() - 1];
318318
}
319319

@@ -336,7 +336,7 @@ impl<'a> Parse<'a> for EncodedString<'a> {
336336
let mut slice = reader.remaining_slice();
337337

338338
// Odd-length UTF-16 strings: ignore last byte.
339-
if slice.len() % 2 != 0 {
339+
if !slice.len().is_multiple_of(2) {
340340
slice = &slice[..slice.len() - 1];
341341
}
342342

veecle-os-runtime/src/datastore/reader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use core::cell::Ref;
22
use core::fmt::Debug;
33
use core::marker::PhantomData;
4-
use core::pin::{Pin, pin};
4+
use core::pin::Pin;
55

66
use pin_project::pin_project;
77

veecle-os/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
#![forbid(unsafe_code)]
44
#![no_std]
5-
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
5+
#![cfg_attr(docsrs, feature(doc_cfg))]
66

77
#[doc(inline)]
88
pub use veecle_os_runtime as runtime;

veecle-telemetry-server/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ async fn handle_stdin(store: Arc<TracingLineStore>) -> anyhow::Result<()> {
100100
while let Some(line) = reader.next_line().await.context("reading from stdin")? {
101101
let total_lines = store.push_line(line);
102102

103-
if total_lines % 10 == 0 || last_log.elapsed() >= Duration::from_millis(100) {
103+
if total_lines.is_multiple_of(10) || last_log.elapsed() >= Duration::from_millis(100) {
104104
print!("\rProcessed {total_lines} lines.\r");
105105
last_log = Instant::now();
106106
}

0 commit comments

Comments
 (0)