You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: player.rs
    path of file: ./repos/spot/src/connect
    
    the code of the file until where you have to start completion: use std::collections::hash_map::DefaultHasher;
use std::hash::{Hash, Hasher};
use std::sync::{Arc, RwLock};

use futures::channel::mpsc::UnboundedSender;
use gettextrs::gettext;

use crate::api::{SpotifyApiClient, SpotifyApiError, SpotifyResult};
use crate::app::models::{ConnectPlayerState, RepeatMode, SongDescription};
use crate::app::state::{Device, PlaybackAction};
use crate::app::{AppAction, Son
    
    async fn get_queue_if_changed(&self) -> Option<Vec<SongDescription>> {
        let last_queue = *self.last_queue.read().ok().as_deref().unwrap_or(&0u64);
        let songs = self.api.get_player_queue().await.ok();
        songs.filter(|songs| {
            let hash = {
                let mut hasher = DefaultHasher::new();
                songs.hash(&mut hasher);
                hasher.finish()
            };
            if let Some(last_queue) = self.last_queue.try_write().ok().as_deref_mut() {
                *last_queue = hash;
            }
            hash != last_queue
        })
    }