Skip to content

Commit

Permalink
Fix OSS build for deprecated_function
Browse files Browse the repository at this point in the history
Summary: As title

Reviewed By: robertoaloi

Differential Revision: D48780051

fbshipit-source-id: 414a12b1a3e94c25109b875dd833179aff499d09
  • Loading branch information
alanz authored and facebook-github-bot committed Aug 29, 2023
1 parent 26849bd commit 016c930
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/ide/src/diagnostics/deprecated_function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ pub struct DeprecationDetails {
message: Option<String>,
}

// @oss-only #[allow(dead_code)]
impl DeprecationDetails {
pub fn new() -> Self {
DeprecationDetails {
Expand Down Expand Up @@ -72,7 +73,7 @@ pub(crate) fn deprecated_function(
) {
lazy_static! {
static ref DEPRECATED_FUNCTIONS: Vec<(FunctionMatch, DeprecationDetails)> = {
let matches = vec![
let matches: Vec<Vec<(FunctionMatch, DeprecationDetails)>> = vec![
// @fb-only: diagnostics::meta_only::deprecated_function_matches(),
];
matches.into_iter()
Expand Down

0 comments on commit 016c930

Please sign in to comment.