diff options
author | Paul Woolcock <paul@woolcock.us> | 2020-06-09 09:11:18 -0400 |
---|---|---|
committer | Paul Woolcock <paul@woolcock.us> | 2020-06-11 12:09:52 -0400 |
commit | 16bc060407fc23660994bf3f4894cfecf2a46148 (patch) | |
tree | 2551738ee5e24747070c7b7fdd752b7762da9dc6 /examples/search.rs | |
parent | 17c727f5c615eed921d0095d1b6f49e44024025d (diff) |
Update to the 2018 edition
Only 2 years later :eyeroll:
Diffstat (limited to 'examples/search.rs')
-rw-r--r-- | examples/search.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/search.rs b/examples/search.rs index ec13f6d..c619a74 100644 --- a/examples/search.rs +++ b/examples/search.rs @@ -5,11 +5,11 @@ extern crate pretty_env_logger; extern crate elefren; mod register; -use register::MastodonClient; +use crate::register::MastodonClient; use std::error; #[cfg(feature = "toml")] -fn main() -> Result<(), Box<error::Error>> { +fn main() -> Result<(), Box<dyn error::Error>> { let mastodon = register::get_mastodon_data()?; let input = register::read_line("Enter the term you'd like to search: ")?; let result = mastodon.search(&input, false)?; |