Skip to content

Commit

Permalink
chore: rustfmt & clippy fixes + suppress missing safety docs for stre…
Browse files Browse the repository at this point in the history
…mio_core_android module

Signed-off-by: Lachezar Lechev <[email protected]>
  • Loading branch information
elpiel committed Aug 2, 2024
1 parent ba59b4b commit 8d8a601
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/commonMain/rust/bridge.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//! This module contains all the bridge impls which take [`stremio_core`] types
//! and allow `FromProtobuf` and `ToProtobuf` for Protobuf generates structs and enums.
//!
//!
//! # Bridge
mod action;
Expand Down
1 change: 0 additions & 1 deletion src/commonMain/rust/bridge/loadable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ use stremio_core::types::{
watched_bitfield::WatchedBitField,
};


use crate::bridge::ToProtobuf;
use crate::protobuf::stremio::core::models;
use crate::protobuf::stremio::core::models::{LoadedModal, LoadedNotification, PlaybackDevices};
Expand Down
2 changes: 1 addition & 1 deletion src/commonMain/rust/model.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mod fields;
mod addons;
mod fields;
pub use addons::*;

mod model;
Expand Down
2 changes: 1 addition & 1 deletion src/commonMain/rust/model/fields.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ mod library_by_type;
mod link;
mod meta_details;
mod player;
mod streaming_server;
mod streaming_server;
3 changes: 3 additions & 0 deletions src/commonMain/rust/stremio_core_android.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// TODO: Add safety docs and remove suppression of linter!
#![allow(clippy::missing_safety_doc)]

use std::io::Cursor;
use std::os::raw::c_void;
#[cfg(debug_assertions)]
Expand Down
1 change: 0 additions & 1 deletion stremio-core-protobuf/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ fn main() {
eprintln!("Glob error: {err}");
}


result.ok()
})
.collect::<Vec<_>>();
Expand Down

0 comments on commit 8d8a601

Please sign in to comment.