From fb6b634de37e38fd1821f2cf9228df176f9526f5 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Tue, 17 Aug 2021 23:10:52 +0200 Subject: cargo fmt + added fmt::skip attributes --- examples/check_caps.rs | 1 + examples/long_mode.rs | 1 + 2 files changed, 2 insertions(+) (limited to 'examples') diff --git a/examples/check_caps.rs b/examples/check_caps.rs index e4baf83..b9e1125 100644 --- a/examples/check_caps.rs +++ b/examples/check_caps.rs @@ -2,6 +2,7 @@ use kvm_rs::cap::CapBool::*; use kvm_rs::cap::CapInt::*; use kvm_rs::kvm::Kvm; +#[rustfmt::skip] fn main() -> std::io::Result<()> { let kvm = Kvm::new()?; diff --git a/examples/long_mode.rs b/examples/long_mode.rs index 668364f..0696ae4 100644 --- a/examples/long_mode.rs +++ b/examples/long_mode.rs @@ -57,6 +57,7 @@ fn setup_long_mode_segments(sregs: &mut kvm_sys::kvm_sregs) { data_seg(&mut sregs.es); } +#[rustfmt::skip] fn setup_long_mode_4level_paging(mem: &mut UserMem) -> PhysAddr { assert_eq!(0x8000, mem.as_ref().len()); -- cgit v1.2.3