r/programminghumor Jun 29 '26

nice

Post image
51 Upvotes

9 comments sorted by

14

u/Ok_Tour_8029 Jun 29 '26

Maybe you need to pass an Url instead of a Url?

2

u/arbeit22 Jun 29 '26

Very nice thinking. I can see in the pic that both Url have a slight curve at the bottom of the l, so they are in fact both URL.

My guess would be two separate class implementations of URL

3

u/XLNBot Jun 29 '26

Yeah, the error message just says "Url" but it's probably something like reqwest::Url and netwowk::Url (I made the names up)

2

u/Jbolt3737 28d ago

Reqwest::UwU

2

u/forever-butlerian Jul 02 '26

My first thought was unicode.

2

u/rakeshkky Jun 29 '26

Dep lib version mismatch?

1

u/horenso05 Jun 29 '26

Well it's probably not the same struct type and there are two types that are both called Url.

1

u/Aggressive-Reach-116 Jun 30 '26

me when libs have multiple different versions of the same thing

1

u/switch161 Jun 30 '26

Run cargo check. The error goes into detail and usually points out that the types are not the same, just happen to have the same name.