Skip to content

Commit 9d93ede

Browse files
zthCopilot
andcommitted
Update rewatch/src/config.rs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 6b1d196 commit 9d93ede

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

rewatch/src/config.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,10 +248,13 @@ impl<'de> serde::Deserialize<'de> for ExperimentalFeature {
248248
{
249249
match v {
250250
"LetUnwrap" => Ok(ExperimentalFeature::LetUnwrap),
251-
other => Err(DeError::custom(format!(
252-
"Unknown experimental feature '{}'. Available features: LetUnwrap",
253-
other
254-
))),
251+
other => {
252+
let available = ExperimentalFeature::all_names().join(", ");
253+
Err(DeError::custom(format!(
254+
"Unknown experimental feature '{}'. Available features: {}",
255+
other, available
256+
)))
257+
}
255258
}
256259
}
257260
}

0 commit comments

Comments
 (0)