Skip to content

Commit

Permalink
tidy up overly an verbose string conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
dwrensha committed Sep 13, 2023
1 parent b25b2f0 commit 20741d1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions capnp-rpc/examples/pubsub/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,7 @@ pub async fn main() -> Result<(), Box<dyn std::error::Error>> {
subscriber.requests_in_flight += 1;
let mut request = subscriber.client.push_message_request();
request.get().set_message(
(&format!("system time is: {:?}", ::std::time::SystemTime::now())
[..])
format!("system time is: {:?}", ::std::time::SystemTime::now())[..]
.into(),
)?;
let subscribers2 = subscribers1.clone();
Expand Down

0 comments on commit 20741d1

Please sign in to comment.