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
//! 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
}