Skip to content

Commit

Permalink
fix(*): use const
Browse files Browse the repository at this point in the history
  • Loading branch information
flrgh committed Jul 1, 2023
1 parent a585962 commit 533c987
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ use std::process;
use std::process::Command;
use thiserror::Error as TE;

pub static VERSION: &str = "0.1.0";
const VERSION: &str = "0.1.0";

pub static USAGE: &str = r#"Usage: rusty-cli [OPTIONS] [lua-file] [args]...
const USAGE: &str = r#"Usage: rusty-cli [OPTIONS] [lua-file] [args]...
Arguments:
[lua-file]
Expand Down
8 changes: 4 additions & 4 deletions src/nginx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ use minijinja::{context, Environment};
use std::env;
use std::path::PathBuf;

pub static RESTY_COMPAT_VAR: &str = "RESTY_CLI_COMPAT_VERSION";
pub static RESTY_COMPAT_LATEST: u64 = 28;
const RESTY_COMPAT_VAR: &str = "RESTY_CLI_COMPAT_VERSION";
const RESTY_COMPAT_LATEST: u64 = 28;

pub static TEMPLATE: &str = include_str!("nginx.conf.tpl");
pub static TEMPLATE_NAME: &str = "nginx.conf";
const TEMPLATE: &str = include_str!("nginx.conf.tpl");
const TEMPLATE_NAME: &str = "nginx.conf";

pub struct Vars {
pub events_conf: Vec<String>,
Expand Down

0 comments on commit 533c987

Please sign in to comment.