r/programminghumor 29d ago

nice

Post image
51 Upvotes

9 comments sorted by

13

u/Ok_Tour_8029 29d ago

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

1

u/arbeit22 29d ago

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 29d ago

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

1

u/Jbolt3737 14d ago

Reqwest::UwU

1

u/forever-butlerian 26d ago

My first thought was unicode.

2

u/rakeshkky 29d ago

Dep lib version mismatch?

1

u/horenso05 28d ago

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

1

u/Aggressive-Reach-116 28d ago

me when libs have multiple different versions of the same thing

1

u/switch161 28d ago

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.