aboutsummaryrefslogtreecommitdiff
path: root/parse_wiki_text/src/display.rs
diff options
context:
space:
mode:
Diffstat (limited to 'parse_wiki_text/src/display.rs')
-rw-r--r--parse_wiki_text/src/display.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse_wiki_text/src/display.rs b/parse_wiki_text/src/display.rs
index cc2b258..4c1f03a 100644
--- a/parse_wiki_text/src/display.rs
+++ b/parse_wiki_text/src/display.rs
@@ -6,8 +6,8 @@
use crate::{Node, Parameter};
use std::fmt::Error;
-// why is std::other::Result not usable when i import std::fmt::Result?
+// why is core::result::Result not usable when i import std::fmt::Result?
impl std::fmt::Display for Node<'_> {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
return match self {
@@ -186,7 +186,7 @@ fn get<'a>(parameters: &'a Vec<Parameter>, index: usize) -> Result<&'a str, Erro
}
-fn get_language<'a>(country_code: &'a str) -> &'a str {
+fn get_language(country_code: &str) -> &'static str {
return "English";
// todo: implement necessary parts of isolang
// if country_code.len() == 3 {