Closed
Description
rust-analyzer version: ust-analyzer version: 0.3.2379-standalone (8365cf8 2025-04-13)
rustc version: rustc 1.86.0 (05f9846f8 2025-03-31)
editor or extension: VSCode (rust-analyzer version 0.3.2379)
problem: When hovering over default_value_t
, I receive an error message saying Request textDocument/hover failed
. Here is the output of the error. errmsg.txt
dependencies:
[dependencies]
clap = {version="4.5.36", features = ["derive"]}
tokio = { version = "1", features = ["full"] }
code snippet to reproduce:
use clap::{Parser, ValueEnum};
/// Supported audio formats for yt-dlp
#[derive(Copy, Clone, Debug, ValueEnum)]
pub enum AudioFormat {
Mp3,
Wav,
M4a,
Flac,
Aac,
Ogg,
Opus,
}
#[derive(Parser, Debug)]
#[command(
name = "Playlist Downloader",
about = "Easily download playlists from YouTube or Musi"
)]
pub struct Cli {
/// Set the audio format (e.g., mp3, m4a, flac, wav)
#[arg(long = "audio-format", value_enum, default_value_t = AudioFormat::Mp3, help = "Convert audio to the given format")]
pub audio_format: AudioFormat,
}