refactor: minify empty structs

Signed-off-by: ljedrz <ljedrz@gmail.com>
This commit is contained in:
ljedrz 2020-07-07 17:23:57 +02:00
parent cc5a266d2b
commit fb1742a38e
2 changed files with 3 additions and 3 deletions

View File

@ -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];

View File

@ -114,7 +114,7 @@ pub struct RmResponse {
}
#[derive(Serialize, Deserialize)]
pub struct EmptyResponse {}
pub struct EmptyResponse;
pub fn rm<T: IpfsTypes>(
ipfs: &Ipfs<T>,