diff options
author | Paul Woolcock <paul@woolcock.us> | 2018-08-27 10:28:39 -0400 |
---|---|---|
committer | Paul Woolcock <paul@woolcock.us> | 2018-08-27 11:27:19 -0400 |
commit | 1057e58343b64cd621b71d202c8cc36fd5bd80bc (patch) | |
tree | 2db27d45244185faf15c63bcb4b0b9e992f7b34c /examples | |
parent | 009798d17f95437d292954b3f1c87b6f7f109026 (diff) |
There's no reason for Registration::complete to take an owned string
Diffstat (limited to 'examples')
-rw-r--r-- | examples/register.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/register.rs b/examples/register.rs index c9d961d..c413b99 100644 --- a/examples/register.rs +++ b/examples/register.rs @@ -39,7 +39,7 @@ pub fn register() -> Result<Mastodon, Box<Error>> { println!("Click this link to authorize on Mastodon: {}", url); let code = read_line("Paste the returned authorization code: ")?; - let mastodon = registration.complete(code)?; + let mastodon = registration.complete(&code)?; // Save app data for using on the next run. toml::to_file(&*mastodon, "mastodon-data.toml")?; |