Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/rariPublic

fix(baseline): include data for discouraged features#311

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
LeoMcA wants to merge4 commits intomain
base:main
Choose a base branch
Loading
frombaseline-discouraged
Draft
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
NextNext commit
fix(baseline): include data for discouraged features
  • Loading branch information
@LeoMcA
LeoMcA committedSep 15, 2025
commite92873e2937cbdfa8749d11cf86ccdc1eb9f4e5a
11 changes: 7 additions & 4 deletionscrates/rari-data/src/baseline.rs
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -129,7 +129,13 @@ impl WebFeatures {
.iter()
.map(|sub_key| {
self.feature_data_by_name(&sub_key.feature)
.and_then(|feature| feature.status.as_ref())
.and_then(|feature| {
feature
.discouraged
.is_none()
.then_some(feature.status.as_ref())
.flatten()
})
.and_then(|status| status.by_compat_key.as_ref())
.and_then(|by_key| by_key.get(&sub_key.bcd_key))
.and_then(|status_for_key| status_for_key.baseline)
Expand DownExpand Up@@ -187,9 +193,6 @@ impl WebFeatures {

fn feature_data_by_name(&self, feature_name: &str) -> Option<&FeatureData> {
if let Some(feature_data) = self.features.get(feature_name) {
if feature_data.discouraged.is_some() {
return None;
}
return Some(feature_data);
}
None
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp