Skip to content

Commit 7bc882f

Browse files
author
SkymanOne
committed
format code to please CI
1 parent c1f9ae2 commit 7bc882f

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

crates/metadata/src/specs.rs

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@
1414

1515
#![allow(clippy::new_ret_no_self)]
1616

17-
use crate::{serde_hex, utils::trim_extra_whitespace};
17+
use crate::{
18+
serde_hex,
19+
utils::trim_extra_whitespace,
20+
};
1821
#[cfg(not(feature = "std"))]
1922
use alloc::{
2023
format,
@@ -367,7 +370,10 @@ impl<S, P> ConstructorSpecBuilder<S, P> {
367370
{
368371
let mut this = self;
369372
debug_assert!(this.spec.docs.is_empty());
370-
this.spec.docs = docs.into_iter().map(trim_extra_whitespace).collect::<Vec<_>>();
373+
this.spec.docs = docs
374+
.into_iter()
375+
.map(trim_extra_whitespace)
376+
.collect::<Vec<_>>();
371377
this
372378
}
373379
}
@@ -586,7 +592,10 @@ impl<S, M, P, R> MessageSpecBuilder<S, M, P, R> {
586592
{
587593
let mut this = self;
588594
debug_assert!(this.spec.docs.is_empty());
589-
this.spec.docs = docs.into_iter().map(trim_extra_whitespace).collect::<Vec<_>>();
595+
this.spec.docs = docs
596+
.into_iter()
597+
.map(trim_extra_whitespace)
598+
.collect::<Vec<_>>();
590599
this
591600
}
592601
}

crates/metadata/src/utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
use std::str;
1615
use crate::serde_hex;
16+
use std::str;
1717

1818
/// Serializes the given bytes as byte string.
1919
pub fn serialize_as_byte_str<S>(bytes: &[u8], serializer: S) -> Result<S::Ok, S::Error>

0 commit comments

Comments
 (0)