diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-06-06 19:06:56 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-06-06 19:06:56 +0200 |
| commit | 219f14355b5df9a93210895d47f77b028291e788 (patch) | |
| tree | 1d1a0549a3b49125ea7cd054cfc2e10b4c222c7b /tests/src | |
| parent | f453565ebf061581f398eb3a5dcfb7a35a5ad04a (diff) | |
Rename `into_u16` to `as_u16`
Diffstat (limited to 'tests/src')
| -rw-r--r-- | tests/src/tests.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/src/tests.rs b/tests/src/tests.rs index 61414daa..2c94af6c 100644 --- a/tests/src/tests.rs +++ b/tests/src/tests.rs @@ -279,7 +279,7 @@ impl World for TestWorld { } fn source(&self, id: SourceId) -> &Source { - &self.sources[id.into_u16() as usize] + &self.sources[id.as_u16() as usize] } fn book(&self) -> &Prehashed<FontBook> { @@ -307,7 +307,7 @@ impl TestWorld { let slot = self.slot(path); let id = if let Some(&Ok(id)) = slot.source.get() { drop(slot); - self.sources.as_mut()[id.into_u16() as usize].replace(text); + self.sources.as_mut()[id.as_u16() as usize].replace(text); id } else { let id = self.insert(path, text); |
