Skip to content
This repository has been archived by the owner on Jun 8, 2024. It is now read-only.

Commit

Permalink
document Span
Browse files Browse the repository at this point in the history
  • Loading branch information
KodrAus committed May 24, 2024
1 parent 8ca905b commit 7d46ef1
Show file tree
Hide file tree
Showing 4 changed files with 240 additions and 10 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,7 @@ fn main() {
```
*/

#![deny(missing_docs)]
#![cfg_attr(not(feature = "std"), no_std)]

#[cfg(feature = "alloc")]
Expand Down
2 changes: 2 additions & 0 deletions src/macro_hooks.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(missing_docs)]

use core::{any::Any, fmt, ops::ControlFlow};

use emit_core::{
Expand Down
6 changes: 3 additions & 3 deletions src/metric.rs
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ impl<'a, P> Metric<'a, P> {
}

/**
Get a reference to the module that owns the underlying data source.
Get the module that owns the underlying data source.
*/
pub fn module(&self) -> &Path<'a> {
&self.module
Expand Down Expand Up @@ -414,8 +414,8 @@ impl<'a, P> Metric<'a, P> {
/**
Get the extent for which the sample was generated.
*/
pub fn extent(&self) -> &Option<Extent> {
&self.extent
pub fn extent(&self) -> Option<&Extent> {
self.extent.as_ref()
}

/**
Expand Down

0 comments on commit 7d46ef1

Please sign in to comment.