Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
travis79 committed Nov 19, 2024
1 parent c70a172 commit 744b91d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -498,9 +498,9 @@ open class GleanInternalAPI internal constructor() {
*
* @return The [String] value of the current debug tag or `null` if not set.
*/
fun getDebugViewTag(): String? {
fun getDebugViewTag(): String? {
return gleanGetDebugViewTag()
}
}

/**
* Set the source tags to be applied as headers when uploading pings.
Expand Down
2 changes: 1 addition & 1 deletion glean-core/src/core/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ impl Glean {
///
/// The list of ping names that are currently registered.
pub fn get_registered_ping_names(&self) -> Vec<&String> {
self.ping_registry.keys().into_iter().collect()
self.ping_registry.keys().collect()
}

/// Get create time of the Glean object.
Expand Down
12 changes: 2 additions & 10 deletions glean-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -998,13 +998,7 @@ pub fn glean_set_debug_view_tag(tag: String) -> bool {
/// Return the value for the debug view tag or [`None`] if it hasn't been set.
pub fn glean_get_debug_view_tag() -> Option<String> {
block_on_dispatcher();
core::with_glean(|glean| {
if let Some(tag) = glean.debug_view_tag() {
Some(tag.to_string())
} else {
None
}
})
core::with_glean(|glean| glean.debug_view_tag().map(|tag| tag.to_string()))
}

/// Sets source tags.
Expand Down Expand Up @@ -1063,9 +1057,7 @@ pub fn glean_set_log_pings(value: bool) {
/// Return the value for the log pings debug option.
pub fn glean_get_log_pings() -> bool {
block_on_dispatcher();
core::with_glean(|glean| {
glean.log_pings()
})
core::with_glean(|glean| glean.log_pings())
}

/// Performs the collection/cleanup operations required by becoming active.
Expand Down

0 comments on commit 744b91d

Please sign in to comment.