Skip to content

Instantly share code, notes, and snippets.

@yoshuawuyts
Created April 27, 2019 10:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yoshuawuyts/e810cc7021b71b5739eff77ce54aba1e to your computer and use it in GitHub Desktop.
Save yoshuawuyts/e810cc7021b71b5739eff77ce54aba1e to your computer and use it in GitHub Desktop.
// required
let listener = TcpListener::bind((args.address.as_str(), args.port))?;
// what we want to be able to do
let listener = TcpListener::bind((&args.address, args.port))?;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment