mirror of
https://github.com/alacritty/alacritty.git
synced 2025-09-04 22:43:53 -04:00
Remove unnecessary mutable references
This commit is contained in:
parent
31fe27b237
commit
395ad40bc1
2 changed files with 4 additions and 4 deletions
|
@ -303,7 +303,7 @@ impl RenderableCell {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get the RGB color from a cell's foreground color.
|
/// Get the RGB color from a cell's foreground color.
|
||||||
fn compute_fg_rgb(content: &mut RenderableContent<'_>, fg: Color, flags: Flags) -> Rgb {
|
fn compute_fg_rgb(content: &RenderableContent<'_>, fg: Color, flags: Flags) -> Rgb {
|
||||||
let config = &content.config;
|
let config = &content.config;
|
||||||
match fg {
|
match fg {
|
||||||
Color::Spec(rgb) => match flags & Flags::DIM {
|
Color::Spec(rgb) => match flags & Flags::DIM {
|
||||||
|
@ -351,7 +351,7 @@ impl RenderableCell {
|
||||||
|
|
||||||
/// Get the RGB color from a cell's background color.
|
/// Get the RGB color from a cell's background color.
|
||||||
#[inline]
|
#[inline]
|
||||||
fn compute_bg_rgb(content: &mut RenderableContent<'_>, bg: Color) -> Rgb {
|
fn compute_bg_rgb(content: &RenderableContent<'_>, bg: Color) -> Rgb {
|
||||||
match bg {
|
match bg {
|
||||||
Color::Spec(rgb) => rgb.into(),
|
Color::Spec(rgb) => rgb.into(),
|
||||||
Color::Named(ansi) => content.color(ansi as usize),
|
Color::Named(ansi) => content.color(ansi as usize),
|
||||||
|
|
|
@ -243,7 +243,7 @@ fn first_occupied<T>(term: &Term<T>, mut point: Point) -> Point {
|
||||||
|
|
||||||
/// Move by semantically separated word, like w/b/e/ge in vi.
|
/// Move by semantically separated word, like w/b/e/ge in vi.
|
||||||
fn semantic<T: EventListener>(
|
fn semantic<T: EventListener>(
|
||||||
term: &mut Term<T>,
|
term: &Term<T>,
|
||||||
mut point: Point,
|
mut point: Point,
|
||||||
direction: Direction,
|
direction: Direction,
|
||||||
side: Side,
|
side: Side,
|
||||||
|
@ -293,7 +293,7 @@ fn semantic<T: EventListener>(
|
||||||
|
|
||||||
/// Move by whitespace separated word, like W/B/E/gE in vi.
|
/// Move by whitespace separated word, like W/B/E/gE in vi.
|
||||||
fn word<T: EventListener>(
|
fn word<T: EventListener>(
|
||||||
term: &mut Term<T>,
|
term: &Term<T>,
|
||||||
mut point: Point,
|
mut point: Point,
|
||||||
direction: Direction,
|
direction: Direction,
|
||||||
side: Side,
|
side: Side,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue