From c5482f7532c19ff15a196519bfa3e8f767b80469 Mon Sep 17 00:00:00 2001 From: Yegor Bugayenko Date: Thu, 12 Jan 2023 11:58:03 +0300 Subject: [PATCH] #75 case explained --- src/find.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/find.rs b/src/find.rs index 10693e9..b709cfb 100644 --- a/src/find.rs +++ b/src/find.rs @@ -221,6 +221,10 @@ impl FakeRelay { #[cfg(test)] impl Relay for FakeRelay { fn re(&self, _v: u32, _a: &str, _b: &str) -> Result { + // It's impossible to do what the following two lines are + // doing, because "self" is immutable: + // self.g.add(42).unwrap(); + // Ok("ν42".to_string()) Ok("ν1".to_string()) } }