mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Make Opts no longer a record
This commit is contained in:
parent
bc591ce94f
commit
b1456dac39
1 changed files with 3 additions and 3 deletions
|
@ -1,10 +1,10 @@
|
|||
//! Configuration options for a single run of the servo application. Created
|
||||
//! from command line arguments.
|
||||
|
||||
pub type Opts = {
|
||||
pub struct Opts {
|
||||
urls: ~[~str],
|
||||
render_mode: RenderMode
|
||||
};
|
||||
}
|
||||
|
||||
pub enum RenderMode {
|
||||
Screen,
|
||||
|
@ -37,7 +37,7 @@ pub fn from_cmdline_args(args: &[~str]) -> Opts {
|
|||
None => { Screen }
|
||||
};
|
||||
|
||||
{
|
||||
Opts {
|
||||
urls: move urls,
|
||||
render_mode: move render_mode
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue