From d693e07424698e0cac5e0fc399645e8521618f85 Mon Sep 17 00:00:00 2001 From: Henry Jiang Date: Wed, 20 Nov 2024 20:12:04 -0500 Subject: [PATCH] fmt --- compiler/rustc_metadata/src/creader.rs | 2 +- src/bootstrap/src/utils/helpers.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/rustc_metadata/src/creader.rs b/compiler/rustc_metadata/src/creader.rs index 68c77c0747659..5436ef44bbec1 100644 --- a/compiler/rustc_metadata/src/creader.rs +++ b/compiler/rustc_metadata/src/creader.rs @@ -1,9 +1,9 @@ //! Validates all used crates and extern libraries and loads their metadata use std::error::Error; +use std::ffi::OsString; use std::ops::Fn; use std::path::Path; -use std::ffi::OsString; use std::str::FromStr; use std::time::Duration; use std::{cmp, env, iter}; diff --git a/src/bootstrap/src/utils/helpers.rs b/src/bootstrap/src/utils/helpers.rs index 563227b4c2325..9ca036a2afd43 100644 --- a/src/bootstrap/src/utils/helpers.rs +++ b/src/bootstrap/src/utils/helpers.rs @@ -62,7 +62,7 @@ pub fn is_dylib(path: &Path) -> bool { fn is_aix_shared_archive(path: &Path) -> bool { // FIXME(#133268): reading the entire file as &[u8] into memory seems excessive - // look into either mmap it or use the ReadCache + // look into either mmap it or use the ReadCache let data = match fs::read(path) { Ok(data) => data, Err(_) => return false,