post rustfmt whitespace fixup (#9436)

Taking best bits of rustfmt's format_strings

Co-authored-by: Alexander Popiak <alexander.popiak@gmail.com>
This commit is contained in:
Squirrel
2021-07-26 14:18:27 +01:00
committed by GitHub
parent ec047abbcf
commit 492523f1ae
18 changed files with 49 additions and 58 deletions
@@ -284,8 +284,8 @@ impl<Block: BlockT> DbChangesTrieStorage<Block> {
pub fn post_commit(&self, tx: Option<DbChangesTrieStorageTransaction<Block>>) {
if let Some(tx) = tx {
self.cache.0.write().commit(tx.cache_ops).expect(
"only fails if cache with given name isn't loaded yet;\
cache is already loaded because there is tx; qed",
"only fails if cache with given name isn't loaded yet; cache is already loaded \
because there is tx; qed",
);
}
}
+4 -4
View File
@@ -518,8 +518,8 @@ where
self.db.commit(transaction)?;
cache.commit(cache_ops).expect(
"only fails if cache with given name isn't loaded yet;\
cache is already loaded because there are cache_ops; qed",
"only fails if cache with given name isn't loaded yet; cache is already loaded \
because there are cache_ops; qed",
);
}
@@ -569,8 +569,8 @@ where
self.db.commit(transaction)?;
cache.commit(cache_ops).expect(
"only fails if cache with given name isn't loaded yet;\
cache is already loaded because there are cache_ops; qed",
"only fails if cache with given name isn't loaded yet; cache is already loaded \
because there are cache_ops; qed",
);
}
self.update_meta(hash, header.number().clone(), false, true);