refactor: minify empty structs
Signed-off-by: ljedrz <ljedrz@gmail.com>
This commit is contained in:
parent
cc5a266d2b
commit
fb1742a38e
@ -18,8 +18,8 @@ const MAX_BUF_SIZE: usize = 524_288;
|
||||
|
||||
type FutureResult<T, E> = Pin<Box<dyn Future<Output = Result<T, E>> + Send>>;
|
||||
|
||||
#[derive(Clone, Debug, Default)]
|
||||
pub struct BitswapConfig {}
|
||||
#[derive(Clone, Copy, Debug, Default)]
|
||||
pub struct BitswapConfig;
|
||||
|
||||
impl UpgradeInfo for BitswapConfig {
|
||||
type Info = &'static [u8];
|
||||
|
@ -114,7 +114,7 @@ pub struct RmResponse {
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize)]
|
||||
pub struct EmptyResponse {}
|
||||
pub struct EmptyResponse;
|
||||
|
||||
pub fn rm<T: IpfsTypes>(
|
||||
ipfs: &Ipfs<T>,
|
||||
|
Loading…
Reference in New Issue
Block a user