summaryrefslogtreecommitdiffstats
path: root/examples/search.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/search.rs')
-rw-r--r--examples/search.rs4
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)?;