Skip to content

Commit 20741d1

Browse files
committed
tidy up overly an verbose string conversion
1 parent b25b2f0 commit 20741d1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

capnp-rpc/examples/pubsub/server.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,7 @@ pub async fn main() -> Result<(), Box<dyn std::error::Error>> {
167167
subscriber.requests_in_flight += 1;
168168
let mut request = subscriber.client.push_message_request();
169169
request.get().set_message(
170-
(&format!("system time is: {:?}", ::std::time::SystemTime::now())
171-
[..])
170+
format!("system time is: {:?}", ::std::time::SystemTime::now())[..]
172171
.into(),
173172
)?;
174173
let subscribers2 = subscribers1.clone();

0 commit comments

Comments
 (0)