未验证 提交 df5748c3 编写于 作者: O openharmony_ci 提交者: Gitee

!619 style: Modify the format to remove extra spaces

Merge pull request !619 from Yanying/master
......@@ -83,7 +83,7 @@ impl TryFrom<u32> for ICalcCode {
}
}
/// Function between proxy and stub of ICalcService
/// Function between proxy and stub of ICalcService
pub trait ICalc: IRemoteBroker {
/// Calc add num1 + num2
fn add(&self, num1: i32, num2: i32) -> IpcResult<i32>;
......
......@@ -161,7 +161,7 @@ impl Ashmem {
// SAFETY: Rust Ashmem always hold a valid native CAshmem.
ipc_binding::ReadFromCAshmem(self.as_inner(), size, offset)
};
if raw_ptr.is_null() {
if raw_ptr.is_null() {
Err(IpcStatusCode::Failed)
} else {
Ok(RawData::new(raw_ptr, size as u32))
......
......@@ -23,7 +23,7 @@ const LOG_LABEL: HiLogLabel = HiLogLabel {
tag: "RustDeathRecipient"
};
/// This type represent a rust DeathRecipient which like C++ DethRecipient.
/// This type represent a rust DeathRecipient which like C++ DethRecipient.
#[repr(C)]
pub struct DeathRecipient {
native: *mut CDeathRecipient,
......
......@@ -13,7 +13,7 @@
* limitations under the License.
*/
use crate::{ipc_binding, IRemoteStub, IRemoteBroker, RemoteObj, BorrowedMsgParcel, };
use crate::{ipc_binding, IRemoteStub, IRemoteBroker, RemoteObj, BorrowedMsgParcel};
use crate::ipc_binding::{CRemoteObject, CParcel};
use std::ffi::{c_void, CString, c_char};
use std::ops::{Deref};
......
......@@ -17,7 +17,7 @@ use crate::{
ipc_binding, MsgParcel, RemoteObj, IRemoteObj, InterfaceToken, String16,
IpcResult, IpcStatusCode, parse_status_code,
};
use crate::parcel::{vec_to_string, allocate_vec_with_buffer,};
use crate::parcel::{vec_to_string, allocate_vec_with_buffer};
use std::ffi::{CString, c_char, c_void};
use hilog_rust::{info, hilog, HiLogLabel, LogType};
......@@ -164,7 +164,7 @@ pub fn set_calling_identity(identity: String) -> bool
/// get local device id
#[inline]
pub fn get_local_device_id() -> IpcResult<String>
pub fn get_local_device_id() -> IpcResult<String>
{
let mut vec: Option<Vec<u8>> = None;
let ok_status = unsafe {
......@@ -204,7 +204,7 @@ pub fn get_calling_device_id() -> IpcResult<String>
/// reset calling identity
#[inline]
pub fn reset_calling_identity() -> IpcResult<String>
pub fn reset_calling_identity() -> IpcResult<String>
{
let mut vec: Option<Vec<u8>> = None;
let ok_status = unsafe {
......
......@@ -84,7 +84,7 @@ impl TryFrom<u32> for ITestCode {
}
}
/// Function between proxy and stub of ITestService
/// Function between proxy and stub of ITestService
pub trait ITest: IRemoteBroker {
/// Test sync transaction
fn test_sync_transaction(&self, value: i32, delay_time: i32) -> IpcResult<i32>;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册