aboutsummaryrefslogtreecommitdiff
path: root/parse_wiki_text/src
diff options
context:
space:
mode:
authorJJ2023-06-17 21:23:06 +0000
committerJJ2023-06-17 21:23:06 +0000
commit4d7f63203724d246d5b58a50a57b6e7d42ab7951 (patch)
tree8eee87e17cea85f030c0f0d033328f630d23e2b1 /parse_wiki_text/src
parentc1c5c3257b91f54d240b0fe3d6a844ce48ef6556 (diff)
minor idiomatic changes
Diffstat (limited to 'parse_wiki_text/src')
-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 {