Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Install Linux link libraries
run: sudo apt-get update && sudo apt-get install -y libxcb1-dev libxkbcommon-dev libxkbcommon-x11-dev
- name: Check format
run: cargo fmt --all --check
- name: Clippy
Expand Down
2 changes: 1 addition & 1 deletion crates/fluent-layout/src/context_menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ mod tests {
use std::time::Duration;

use fluent_test_utils::init_fluent_test;
use gpui::{point, px, AppContext as _, TestAppContext};
use gpui::{point, px, TestAppContext};

use super::*;

Expand Down
2 changes: 1 addition & 1 deletion crates/fluent-layout/src/menu_bar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ mod tests {
use std::time::Duration;

use fluent_test_utils::init_fluent_test;
use gpui::{AppContext as _, TestAppContext};
use gpui::TestAppContext;

use super::*;

Expand Down
2 changes: 1 addition & 1 deletion crates/fluent-layout/src/menu_button.rs
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ mod tests {
use std::time::Duration;

use fluent_test_utils::init_fluent_test;
use gpui::{AppContext as _, ClickEvent, TestAppContext};
use gpui::{ClickEvent, TestAppContext};

use super::*;

Expand Down
2 changes: 1 addition & 1 deletion crates/fluent-primitives/src/combobox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ mod tests {
use std::time::Duration;

use fluent_test_utils::init_fluent_test;
use gpui::{AppContext as _, TestAppContext};
use gpui::TestAppContext;

use super::*;

Expand Down
2 changes: 1 addition & 1 deletion crates/fluent-primitives/src/dropdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ mod tests {
use std::time::Duration;

use fluent_test_utils::init_fluent_test;
use gpui::{AppContext as _, TestAppContext};
use gpui::TestAppContext;

use super::*;

Expand Down
2 changes: 1 addition & 1 deletion crates/gpui/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ fn check_wgsl_shaders() {

let shader_source_path = "./src/platform/blade/shaders.wgsl";
let shader_path = PathBuf::from_str(shader_source_path).unwrap();
println!("cargo:rerun-if-changed={}", &shader_path.display());
println!("cargo:rerun-if-changed={}", shader_path.display());

let shader_source = std::fs::read_to_string(&shader_path).unwrap();

Expand Down
2 changes: 1 addition & 1 deletion crates/gpui/examples/hello_world.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ impl Render for HelloWorld {
.border_color(rgb(0x0000ff))
.text_xl()
.text_color(rgb(0xffffff))
.child(format!("Hello, {}!", &self.text))
.child(format!("Hello, {}!", self.text))
.child(
div()
.flex()
Expand Down
2 changes: 1 addition & 1 deletion crates/gpui/src/geometry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3570,7 +3570,7 @@ pub const fn relative(fraction: f32) -> DefiniteLength {

/// Returns the Golden Ratio, i.e. `~(1.0 + sqrt(5.0)) / 2.0`.
pub fn phi() -> DefiniteLength {
relative(1.618_034)
relative(std::f32::consts::GOLDEN_RATIO)
}

/// Constructs a `Rems` value representing a length in rems.
Expand Down
2 changes: 1 addition & 1 deletion crates/gpui/src/taffy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ impl ToTaffy<taffy::style::Style> for Style {
unit: &Option<u16>,
) -> Vec<taffy::GridTemplateComponent<T>> {
// grid-template-columns: repeat(<number>, minmax(0, 1fr));
unit.map(|count| vec![repeat(count, vec![minmax(length(0.0), fr(1.0))])])
unit.map(|count| vec![repeat(count, vec![minmax(length(0.0_f32), fr(1.0_f32))])])
.unwrap_or_default()
}

Expand Down
Loading