From 0698e3099739f9f3cb8b4b2bce2b53bf5985fea1 Mon Sep 17 00:00:00 2001 From: Kemo <136203274+kemo-1@users.noreply.github.com> Date: Wed, 18 Dec 2024 10:39:25 +0300 Subject: [PATCH] error: Type mismatch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ``` error: Type mismatch ┌─ C:\coding\projects\realtime_chat\build\packages\birl\src\birl.gleam:1163:3 │ 1163 │ range │ ^^^^^ The type of this returned value doesn't match the return type annotation of this function. instead error: Type mismatch ┌─ C:\coding\projects\realtime_chat\build\packages\birl\src\birl.gleam:1163:3 │ 1163 │ range │ ^^^^^ The type of this returned value doesn't match the return type annotation of this function. Expected type: iterator.Iterator(Time) Found type: yielder.Yielder(Time) ``` --- src/birl.gleam | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/birl.gleam b/src/birl.gleam index 6c43875..5bb6d7b 100644 --- a/src/birl.gleam +++ b/src/birl.gleam @@ -8,7 +8,7 @@ import gleam/order import gleam/regexp import gleam/result import gleam/string - +import gleam/yielder import birl/duration import birl/zones @@ -1153,7 +1153,7 @@ pub fn range( from a: Time, to b: option.Option(Time), step s: duration.Duration, -) -> iterator.Iterator(Time) { +) -> yielder.Yielder(Time) { let assert Ok(range) = case b { option.Some(b) -> ranger.create(