Make Opts no longer a record

This commit is contained in:
Patrick Walton 2012-11-09 10:00:46 -08:00
parent bc591ce94f
commit b1456dac39

View file

@ -1,10 +1,10 @@
//! Configuration options for a single run of the servo application. Created //! Configuration options for a single run of the servo application. Created
//! from command line arguments. //! from command line arguments.
pub type Opts = { pub struct Opts {
urls: ~[~str], urls: ~[~str],
render_mode: RenderMode render_mode: RenderMode
}; }
pub enum RenderMode { pub enum RenderMode {
Screen, Screen,
@ -37,7 +37,7 @@ pub fn from_cmdline_args(args: &[~str]) -> Opts {
None => { Screen } None => { Screen }
}; };
{ Opts {
urls: move urls, urls: move urls,
render_mode: move render_mode render_mode: move render_mode
} }