cargo fmt

This commit was merged in pull request #396.
This commit is contained in:
2025-06-11 10:56:31 +08:00
committed by mwojcik
parent 0c642c48c0
commit 2340b44dae
31 changed files with 44 additions and 44 deletions

View File

@@ -2,7 +2,7 @@ use core::{mem,
ops::{Deref, Range},
ptr};
use super::{elf::*, Arch};
use super::{Arch, elf::*};
fn read_unaligned<T: Copy>(data: &[u8], offset: usize) -> Option<T> {
if data.len() < offset + mem::size_of::<T>() {

View File

@@ -1,9 +1,9 @@
use alloc::alloc::{alloc_zeroed, dealloc, Layout, LayoutError};
use alloc::alloc::{Layout, LayoutError, alloc_zeroed, dealloc};
use core::{mem,
ops::{Deref, DerefMut, Range},
slice};
use super::{elf::*, Error};
use super::{Error, elf::*};
pub struct DynamicSection {
pub strtab: Range<usize>,

View File

@@ -4,7 +4,7 @@ use libcortex_a9::{asm::{dsb, isb},
cache::{bpiall, dcci_slice, iciallu}};
use log::trace;
use super::{elf::*, image::Image, Arch, Error, Library};
use super::{Arch, Error, Library, elf::*, image::Image};
pub trait Relocatable {
fn offset(&self) -> usize;