Skip to content

Commit d883f2d

Browse files
build: switch to rust stable
Switches to rust stable compiler. Signed-off-by: Tiago Castro <[email protected]>
1 parent af74cfc commit d883f2d

File tree

6 files changed

+6
-18
lines changed

6 files changed

+6
-18
lines changed

.rustfmt.toml

-12
This file was deleted.

composer/src/composer.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ impl Builder {
644644
if let Ok(ip) = ip.parse() {
645645
tracing::debug!("Reloading existing container: {}", n);
646646
self.existing_containers
647-
.insert(n[1 ..].into(), (container.id.unwrap_or_default(), ip));
647+
.insert(n[1..].into(), (container.id.unwrap_or_default(), ip));
648648
}
649649
}
650650
}
@@ -664,7 +664,7 @@ impl Builder {
664664

665665
/// finds the next unused ip
666666
pub fn next_ip(&self) -> Result<Ipv4Addr, Error> {
667-
for ip in 2 ..= 255u32 {
667+
for ip in 2..=255u32 {
668668
if let Some(ip) = self.network.nth(ip) {
669669
if self.existing_containers.values().all(|(_, e)| e != &ip)
670670
&& self.containers.iter().all(|(_, e)| e != &ip)

devinfo/src/mountinfo/io_utils.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub(crate) fn consistent_read<P: AsRef<Path>>(
1313
let mut current_content = read(path.as_ref())?;
1414

1515
let retries = retry_count.unwrap_or(DEFAULT_RETRY_COUNT);
16-
for _ in 0 ..= retries {
16+
for _ in 0..=retries {
1717
let new_content = read(path.as_ref())?;
1818

1919
if new_content.eq(&current_content) {

devinfo/src/mountinfo/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ impl MountInfo {
120120
match b {
121121
b'\\' => {
122122
let mut code = 0;
123-
for _i in 0 .. 3 {
123+
for _i in 0..3 {
124124
if let Some(b) = bytes.next() {
125125
code *= 8;
126126
code += u32::from_str_radix(&(b as char).to_string(), 8)

nvmeadm/tests/discovery_test.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ fn wait_for_engine_ready(listening_port: u32) -> Result<(), String> {
4747
let dest = format!("127.0.0.1:{listening_port}");
4848
let socket_addr: SocketAddr = dest.parse().expect("Badly formed address");
4949

50-
for _ in 1 .. 20 {
50+
for _ in 1..20 {
5151
let result = TcpStream::connect_timeout(&socket_addr, Duration::from_millis(100));
5252

5353
if result.is_ok() {

shell.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ profile ? "nightly", version ? "2024-10-30" }:
1+
{ profile ? "stable", version ? "1.82.0" }:
22
let
33
sources = import ./nix/sources.nix;
44
pkgs = import sources.nixpkgs {

0 commit comments

Comments
 (0)