File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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>
137137pub 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
You can’t perform that action at this time.
0 commit comments