refactor: remove internal and_then chaining - #1556
Conversation
Package Changes Through 2ef05baThere are 1 changes which include wry with minor Planned Package VersionsThe following package releases are the planned based on the context of changes in this pull request.
Add another change file through the GitHub UI by following this link. Read about change files or the docs at github.com/jbolda/covector |
|
Sometimes(?) simple is better :D |
|
I'm only on my phone rn so I may be imagining things but if we use hash map.insert with the protocol name as key we will silently over duplicates on the with_protocol method, no? |
The newer handler will override the existing one in the builder, but I feel like that's what makes sense to me, since it's a builder that's not being built yet, why not to allow that? |
|
I'm okay with that, it's just different than it was with and_then 🤷 also idk if your argument really applies to a builder method you'll often call multiple times without wanting to overwrite the protocol. but yeah, either way works for me, just wanted to make sure it wasn't an accident. |
amrbashir
left a comment
There was a problem hiding this comment.
Don't merge just yet, I will review it as soon as I can
|
The reason I put the linux web context check inside the final build is because I think it makes more sense to check it just before the build since it doesn't matter before that point Anyways, that's fine either ways |
I moved it there so we can find the logic more easily, it doesn't make sense to delay the check until |
I noticed this while debugging the compile time in tauri with
cargo-llvm-linesThe
and_thenchaining was introduced in #1384 to record the duplcated custom protocol errorIf we would return it in
buildanyways, let's just check it there instead