mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Remove 'get_*' on getters as per RFC 0344 on various components
This commit is contained in:
parent
2733060564
commit
7320433cca
30 changed files with 167 additions and 168 deletions
|
@ -187,8 +187,8 @@ impl Browser {
|
|||
self.compositor.pinch_zoom_level()
|
||||
}
|
||||
|
||||
pub fn get_title_for_main_frame(&self) {
|
||||
self.compositor.get_title_for_main_frame()
|
||||
pub fn request_title_for_main_frame(&self) {
|
||||
self.compositor.title_for_main_frame()
|
||||
}
|
||||
|
||||
pub fn shutdown(mut self) {
|
||||
|
|
|
@ -42,7 +42,7 @@ fn main() {
|
|||
env_logger::init().unwrap();
|
||||
|
||||
// Parse the command line options and store them globally
|
||||
opts::from_cmdline_args(&*get_args());
|
||||
opts::from_cmdline_args(&*args());
|
||||
|
||||
setup_logging();
|
||||
|
||||
|
@ -138,7 +138,7 @@ fn setup_logging() {
|
|||
}
|
||||
|
||||
#[cfg(target_os = "android")]
|
||||
fn get_args() -> Vec<String> {
|
||||
fn args() -> Vec<String> {
|
||||
vec![
|
||||
"servo".to_owned(),
|
||||
"http://en.wikipedia.org/wiki/Rust".to_owned()
|
||||
|
@ -146,7 +146,7 @@ fn get_args() -> Vec<String> {
|
|||
}
|
||||
|
||||
#[cfg(not(target_os = "android"))]
|
||||
fn get_args() -> Vec<String> {
|
||||
fn args() -> Vec<String> {
|
||||
use std::env;
|
||||
env::args().collect()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue