A warrant was issued, but while he was in the embassy the Swedish government couldn't serve him with a notification of it.
Top prosecutor Marianne Ny said his arrest warrant was being revoked as it was impossible to serve him notice.
https://www.bbc.co.uk/news/world-europe-39973864
You are unlikely to come to sound conclusions if you reason on the basis of your knowledge of US law. Sweden is not the US.