diff --git a/schala-lang/language/src/schala.rs b/schala-lang/language/src/schala.rs index 115db4a..4a8e156 100644 --- a/schala-lang/language/src/schala.rs +++ b/schala-lang/language/src/schala.rs @@ -251,8 +251,13 @@ fn stage_names() -> Vec<&'static str> { impl ProgrammingLanguageInterface for Schala { - fn get_language_name(&self) -> String { format!("Schala") } - fn get_source_file_suffix(&self) -> String { format!("schala") } + fn language_name(&self) -> String { + "Schala".to_owned() + } + + fn source_file_suffix(&self) -> String { + "schala".to_owned() + } fn run_computation(&mut self, request: ComputationRequest) -> ComputationResponse { struct PassToken<'a> { diff --git a/schala-repl/src/language.rs b/schala-repl/src/language.rs index fa391e9..da7f13d 100644 --- a/schala-repl/src/language.rs +++ b/schala-repl/src/language.rs @@ -2,8 +2,8 @@ use std::collections::HashSet; use std::time; pub trait ProgrammingLanguageInterface { - fn get_language_name(&self) -> String; - fn get_source_file_suffix(&self) -> String; + fn language_name(&self) -> String; + fn source_file_suffix(&self) -> String; fn run_computation(&mut self, _request: ComputationRequest) -> ComputationResponse { ComputationResponse { diff --git a/schala-repl/src/lib.rs b/schala-repl/src/lib.rs index 96cb101..c5674f3 100644 --- a/schala-repl/src/lib.rs +++ b/schala-repl/src/lib.rs @@ -44,7 +44,7 @@ pub fn run_noninteractive(filenames: Vec, languages: Vec InterpreterDirectiveOutput { writeln!( buf, "Language-specific help for {}", - lang.get_language_name() + lang.language_name() ) .unwrap(); writeln!(buf, "-----------------------").unwrap();