File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -111,10 +111,10 @@ impl Default for TabSelectionType {
111
111
}
112
112
113
113
/// Allows the user to write a custom homepage
114
- pub enum HomepageType {
115
- Url ( String ) ,
114
+ pub enum HomepageType < ' a > {
115
+ Url ( & ' a str ) ,
116
116
/// This is rendered with html
117
- Custom ( String ) ,
117
+ Custom ( & ' a str ) ,
118
118
}
119
119
120
120
pub struct IcyBrowser < Engine : BrowserEngine > {
@@ -160,7 +160,7 @@ impl<Engine: BrowserEngine> IcyBrowser<Engine> {
160
160
pub fn with_homepage ( mut self , homepage : HomepageType ) -> Self {
161
161
match homepage {
162
162
HomepageType :: Url ( url) => {
163
- self . home = Url :: parse ( & url) . expect ( "Failed to parse homepage as a url!" ) ;
163
+ self . home = Url :: parse ( url) . expect ( "Failed to parse homepage as a url!" ) ;
164
164
}
165
165
HomepageType :: Custom ( _) => todo ! ( ) ,
166
166
}
You can’t perform that action at this time.
0 commit comments