Skip to content

Commit 1cded59

Browse files
committed
Fix some broken doc hyperlinks
1 parent d658c28 commit 1cded59

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

opsqueue/src/db/conn.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use super::{magic::*, Connection};
1717
/// You can get a `WriterPool` from [`DBPools::writer_pool`], and a [`ReaderPool`] from
1818
/// [`DBPools::reader_pool`].
1919
///
20-
/// [`Pool`]: super::pool::Pool
20+
/// [`Pool`]: super::Pool
2121
/// [`ReaderPool`]: super::ReaderPool
2222
/// [`WriterPool`]: super::WriterPool
2323
/// [`DBPools::reader_pool`]: super::DBPools::reader_pool

opsqueue/src/db/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ impl WriterPool {
276276
///
277277
/// See [`DBPools`] for further explanation about readers and writers.
278278
///
279-
/// [`DBPools`]: super::DBPools
279+
/// [`DBPools`]: DBPools
280280
pub async fn writer_conn(&self) -> sqlx::Result<Writer<NoTransaction>> {
281281
self.acquire().await
282282
}
@@ -287,7 +287,7 @@ impl ReaderPool {
287287
///
288288
/// See [`DBPools`] for further explanation about readers and writers.
289289
///
290-
/// [`DBPools`]: super::DBPools
290+
/// [`DBPools`]: DBPools
291291
pub async fn reader_conn(&self) -> sqlx::Result<Reader<NoTransaction>> {
292292
self.acquire().await
293293
}

opsqueue/src/prometheus.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ pub fn setup_prometheus() -> (
133133

134134
/// Returns the number of seconds contained by this TimeDelta as f64, with nanosecond precision.
135135
///
136-
/// Adapted from https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_secs_f64
136+
/// Adapted from <https://doc.rust-lang.org/std/time/struct.Duration.html#method.as_secs_f64>
137137
pub fn time_delta_as_f64(td: chrono::TimeDelta) -> f64 {
138138
const NANOS_PER_SEC: f64 = 1_000_000_000.0;
139139
(td.num_seconds() as f64) + (td.subsec_nanos() as f64) / NANOS_PER_SEC

0 commit comments

Comments
 (0)