Skip to content

Commit f4df0fb

Browse files
committed
cargo fmt
1 parent 75a09b4 commit f4df0fb

5 files changed

Lines changed: 11 additions & 6 deletions

File tree

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ pub mod compat;
33
pub mod driver;
44
pub mod mk_graph;
55
pub mod printer;
6-
pub use driver::stable_mir_driver;
76
pub use compat::types::has_attr;
7+
pub use driver::stable_mir_driver;
88
pub use printer::*;

src/printer/items.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
//! generic parameters, internal type info) and foreign module enumeration.
1111
1212
use crate::compat::middle::ty::TyCtxt;
13-
use crate::compat::stable_mir;
1413
use crate::compat::serde;
14+
use crate::compat::stable_mir;
1515

1616
use crate::compat::DefId;
1717
use serde::Serialize;
@@ -49,7 +49,6 @@ fn get_body_details(body: &Body) -> BodyDetails {
4949
BodyDetails::new(std::str::from_utf8(&v).unwrap().into())
5050
}
5151

52-
5352
fn get_item_details(
5453
tcx: TyCtxt<'_>,
5554
id: DefId,

src/printer/link_map.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,11 @@ pub(super) fn fn_inst_sym(
4242
})
4343
}
4444

45-
pub(super) fn update_link_map(link_map: &mut LinkMap, fn_sym: Option<FnSymInfo>, source: ItemSource) {
45+
pub(super) fn update_link_map(
46+
link_map: &mut LinkMap,
47+
fn_sym: Option<FnSymInfo>,
48+
source: ItemSource,
49+
) {
4650
let Some((ty, kind, name)) = fn_sym else {
4751
return;
4852
};

src/printer/schema.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,10 @@ pub enum FnSymType {
210210
/// components are emitted as a 2-tuple; without it, only the type index
211211
/// is written.
212212
#[derive(Clone, Debug, Eq, Hash, PartialEq)]
213-
pub struct LinkMapKey(pub stable_mir::ty::Ty, pub(super) Option<OpaqueInstanceKind>);
213+
pub struct LinkMapKey(
214+
pub stable_mir::ty::Ty,
215+
pub(super) Option<OpaqueInstanceKind>,
216+
);
214217

215218
impl Serialize for LinkMapKey {
216219
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>

src/printer/util.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,3 @@ pub(super) fn fn_inst_for_ty(ty: stable_mir::ty::Ty, direct_call: bool) -> Optio
3030
.ok()
3131
})
3232
}
33-

0 commit comments

Comments
 (0)