Skip to content

Commit 795100c

Browse files
authored
refactor: support new dev-env and fix lintings (#31)
1 parent 4319d5c commit 795100c

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

msfs/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ fn main() {
88
std::env::set_var("AR", "llvm-ar");
99
cc::Build::new()
1010
.compiler("clang")
11-
.flag(&format!("--sysroot={msfs_sdk}/WASM/wasi-sysroot"))
11+
.flag(format!("--sysroot={msfs_sdk}/WASM/wasi-sysroot"))
1212
.flag("-fms-extensions") // intended to be used with msvc
1313
.flag("-D__INTELLISENSE__") // get rid of incorrect __attribute__'s from asobo
1414
.flag("-Wno-unused-parameter") // warning in nanovg
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
#ifndef MSFS_RS_ALLTYPES_H
22
#define MSFS_RS_ALLTYPES_H
33

4-
#include <stdint.h>
5-
64
#endif //MSFS_RS_ALLTYPES_H

msfs/src/sim_connect.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ pub struct SimConnect<'a> {
5858
client_data_id_counter: sys::DWORD,
5959
}
6060

61-
impl<'a> std::fmt::Debug for SimConnect<'a> {
61+
impl std::fmt::Debug for SimConnect<'_> {
6262
fn fmt(&self, fmt: &mut std::fmt::Formatter) -> std::fmt::Result {
6363
fmt.debug_struct("SimConnect").finish()
6464
}
@@ -536,7 +536,7 @@ impl<'a> SimConnect<'a> {
536536
}
537537
}
538538

539-
impl<'a> Drop for SimConnect<'a> {
539+
impl Drop for SimConnect<'_> {
540540
fn drop(&mut self) {
541541
unsafe {
542542
map_err(sys::SimConnect_Close(self.handle)).expect("SimConnect_Close");

0 commit comments

Comments
 (0)