mirror of
https://github.com/servo/servo.git
synced 2025-09-30 16:49:16 +01:00
Fix typos, warnings and other nits
This commit is contained in:
parent
0da87ad169
commit
cd17b6ca66
7 changed files with 35 additions and 53 deletions
|
@ -74,6 +74,7 @@ impl GlContext {
|
|||
GlContext::None => unreachable!(),
|
||||
};
|
||||
}
|
||||
#[allow(unreachable_code, unused_variables)]
|
||||
pub fn raw_context(&self) -> RawContext {
|
||||
match self {
|
||||
GlContext::Current(c) => {
|
||||
|
@ -135,6 +136,7 @@ impl GlContext {
|
|||
}
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
pub fn egl_display(&self) -> Option<*const raw::c_void> {
|
||||
match self {
|
||||
GlContext::Current(c) => unsafe { c.get_egl_display() },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue