Skip to content

Instantly share code, notes, and snippets.

@durka
Created July 18, 2017 22:23
Show Gist options
  • Save durka/3c47af838a5d5cbfee3fd9e0bd7faf78 to your computer and use it in GitHub Desktop.
Save durka/3c47af838a5d5cbfee3fd9e0bd7faf78 to your computer and use it in GitHub Desktop.
let rate_error = cookies.get("rate_error").map(|c| c.value().to_owned());
if rate_error.is_some() {
cookies.remove(Cookie::named("rate_error"));
}
let report_error = cookies.get("report_error").map(|c| c.value().to_owned());
if report_error.is_some() {
cookies.remove(Cookie::named("report_error"));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment