Just desserts, as in the thread "Jolly Rogues of Lynn": " Whereas millers and weavers get their just desserts in the song, the tailor is too much of a rogue, so he ends up enjoying it."
No, they don't get sweets, they get their just deserts, i.e. what they deserve.