Skip to content

Commit f8824e1

Browse files
committed
fix travis and simplify Display for ChannelId
1 parent 895f626 commit f8824e1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
language: rust
22
rust:
33
- stable
4+
os: linux
45
# add nodejs for ganche-cli
56
node_js: "12.12.0"
67
# Need to cache the whole `.cargo` directory to keep .crates.toml for
@@ -13,15 +14,14 @@ env:
1314
- CARGO_MAKE_RUN_CHECK_FORMAT="true"
1415
- CARGO_MAKE_RUN_CLIPPY="true"
1516
services:
16-
- redis-server
17-
matrix:
18-
fast_finish: true
17+
- redis
1918

2019
stages:
2120
- test
2221
- deploy
2322

2423
jobs:
24+
fast_finish: true
2525
include:
2626
- stage: test
2727
script:

primitives/src/channel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ impl FromHex for ChannelId {
4747

4848
impl fmt::Display for ChannelId {
4949
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
50-
write!(f, "{}", format!("0x{}", hex::encode(self.0)))
50+
write!(f, "0x{}", hex::encode(self.0))
5151
}
5252
}
5353

0 commit comments

Comments
 (0)