Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwoerister committed Sep 13, 2021
1 parent 843451e commit cadcbbc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions analyzeme/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ pub use crate::stack_collapse::collapse_stacks;
pub use crate::stringtable::{StringRef, StringTable};
pub use crate::timestamp::Timestamp;


// These are re-exported just for being used in v10.0.0 when supporting
// old file formats. Starting in v10.0.0 these re-exports will become
// part of the `decodeme` crate.
pub use measureme::RawEvent;
pub use measureme::file_header::CURRENT_FILE_FORMAT_VERSION;
pub use measureme::RawEvent;
2 changes: 1 addition & 1 deletion measureme/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pub mod stringtable;
pub mod rustc;

pub use crate::event_id::{EventId, EventIdBuilder};
pub use crate::profiler::{Profiler, TimingGuard, DetachedTiming};
pub use crate::profiler::{DetachedTiming, Profiler, TimingGuard};
pub use crate::raw_event::{RawEvent, MAX_INSTANT_TIMESTAMP, MAX_INTERVAL_TIMESTAMP};
pub use crate::serialization::{
split_streams, Addr, PageTag, SerializationSink, SerializationSinkBuilder,
Expand Down
7 changes: 2 additions & 5 deletions measureme/src/profiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ impl Profiler {
&self,
event_kind: StringId,
event_id: EventId,
thread_id: u32
thread_id: u32,
) -> DetachedTiming {
DetachedTiming {
event_id,
Expand All @@ -148,10 +148,7 @@ impl Profiler {
/// Creates the corresponding "end" event for
/// the "start" event represented by `timing`. You
/// must have obtained `timing` from the same `Profiler`
pub fn finish_recording_interval_event(
&self,
timing: DetachedTiming
) {
pub fn finish_recording_interval_event(&self, timing: DetachedTiming) {
drop(TimingGuard {
profiler: self,
event_id: timing.event_id,
Expand Down

0 comments on commit cadcbbc

Please sign in to comment.