Skip to content

Commit 51c6ffc

Browse files
cjlongoriafacebook-github-bot
authored andcommitted
applying rustfix for 2024 edition migration
Summary: First batch of auto fixes that migrate the codebase to edition 2024 Applied rustfix multiple times (new suggestions would appear after applying lints) to the following directories: ``` $rustfix -n --clippy --edition -T //common/rust/... $rustfix -n --clippy --edition -T //thrift/... $rustfix -n --clippy --edition -T //cli/... ``` Reviewed By: dtolnay Differential Revision: D73291267 fbshipit-source-id: 76fe7e442ca3a828b90f2ea5ff419f8067020655
1 parent 2f41474 commit 51c6ffc

File tree

1 file changed

+5
-5
lines changed
  • common/rust/shed/hostcaps/src

1 file changed

+5
-5
lines changed

common/rust/shed/hostcaps/src/lib.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -46,27 +46,27 @@ pub fn is_lab() -> bool {
4646
false
4747
}
4848

49-
#[no_mangle]
49+
#[unsafe(no_mangle)]
5050
pub extern "C" fn fb_get_env() -> u8 {
5151
get_env() as u8
5252
}
5353

54-
#[no_mangle]
54+
#[unsafe(no_mangle)]
5555
pub extern "C" fn fb_is_prod() -> bool {
5656
*IN_PROD
5757
}
5858

59-
#[no_mangle]
59+
#[unsafe(no_mangle)]
6060
pub extern "C" fn fb_is_corp() -> bool {
6161
*IN_CORP
6262
}
6363

64-
#[no_mangle]
64+
#[unsafe(no_mangle)]
6565
pub extern "C" fn fb_is_lab() -> bool {
6666
*IN_LAB
6767
}
6868

69-
#[no_mangle]
69+
#[unsafe(no_mangle)]
7070
pub extern "C" fn fb_has_servicerouter() -> bool {
7171
*IN_PROD
7272
}

0 commit comments

Comments
 (0)