From 37b2027a99ec49b1221084304fdfd8c51a2c3e64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Sp=C3=B6ttel?= <1682504+fspoettel@users.noreply.github.com> Date: Tue, 26 Apr 2022 09:11:57 +0200 Subject: [PATCH] fix: replace git.io links --- README.md | 2 +- src/lib.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index dea86ed..8008efa 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ Generated from [fspoettel/advent-of-code-rust](https://github.com/fspoettel/adve Individual solutions live in the `./src/bin` directory as separate binaries. -Every [solution](https://git.io/JyXa8) has _unit tests_ referencing the _example_ file. Use these tests to develop and debug your solution. When editing a solution, `rust-analyzer` will display buttons for these actions above the unit tests. +Every [solution](https://github.com/fspoettel/advent-of-code-rust/blob/master/bin/scaffold#L21-L52) has _unit tests_ referencing the _example_ file. Use these tests to develop and debug your solution. When editing a solution, `rust-analyzer` will display buttons for these actions above the unit tests. ### Download inputs for a day diff --git a/src/lib.rs b/src/lib.rs index bb069a9..c55ec67 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -52,7 +52,7 @@ pub fn parse_exec_time(output: &str) -> f64 { } else { let timing = l.split("(elapsed: ").last().unwrap(); // use `contains` istd. of `ends_with`: string may contain ANSI escape sequences. - // possible time formats: see [rust/library/core/src/time.rs](https://git.io/Jy1rI). + // possible time formats: see [rust/library/core/src/time.rs](https://github.com/rust-lang/rust/blob/1.57.0/library/core/src/time.rs#L1225-L1249). if timing.contains("ns)") { acc // range below rounding precision. } else if timing.contains("µs)") { @@ -72,7 +72,7 @@ pub fn parse_exec_time(output: &str) -> f64 { mod tests { use super::*; - /// copied from: [rust/library/std/src/macros.rs](https://git.io/Jy1r7) + /// copied from: [rust/library/std/src/macros.rs](https://github.com/rust-lang/rust/blob/1.57.0/library/std/src/macros.rs#L311-L316) macro_rules! assert_approx_eq { ($a:expr, $b:expr) => {{ let (a, b) = (&$a, &$b);