Skip to content

Commit

Permalink
Merge pull request #445 from ramsayleung/ramsay/fix-compiler-warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ramsayleung authored Nov 4, 2023
2 parents be6124a + 2391d52 commit a3bd1c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions examples/webapp/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ fn remove_cache_path(jar: &CookieJar<'_>) {
if cache_path.exists() {
fs::remove_file(cache_path).unwrap()
}
jar.remove(Cookie::named("uuid"))
jar.remove(Cookie::from("uuid"))
}

fn cache_path_exists(jar: &CookieJar<'_>) -> bool {
Expand Down Expand Up @@ -166,12 +166,12 @@ fn index(jar: &CookieJar<'_>) -> Template {
// them.
let authenticated = jar.get("uuid").is_some() && cache_path_exists(jar);
if !authenticated {
let uuid = Cookie::build("uuid", generate_random_uuid(64))
let uuid = Cookie::build(("uuid", generate_random_uuid(64)))
.path("/")
.secure(true)
.max_age(Duration::minutes(30))
.same_site(SameSite::Lax)
.finish();
.build();

jar.add(uuid);
let spotify = init_spotify(jar);
Expand Down
2 changes: 1 addition & 1 deletion rspotify-model/src/idtypes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ use crate::Type;

/// Spotify ID or URI parsing error
///
/// See also [`Id`](crate::idtypes::Id) for details.
/// See also [`Id`] for details.
#[derive(Debug, PartialEq, Eq, Clone, Copy, Display, Error)]
pub enum IdError {
/// Spotify URI prefix is not `spotify:` or `spotify/`.
Expand Down

0 comments on commit a3bd1c8

Please sign in to comment.