Skip to content

Commit

Permalink
remove unnecessary dependencies,fix native name
Browse files Browse the repository at this point in the history
  • Loading branch information
Sreyas-Sreelal committed Apr 18, 2019
1 parent 95b3a37 commit e4cb6af
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion Cargo.toml
Expand Up @@ -10,6 +10,5 @@ crate-type = ["cdylib"]

[dependencies]
samp = {git="https://github.com/ZOTTCE/samp-rs/",branch="async-amx",features = ["async"]}
bcrypt = "0.2.1"
log = "0.4.6"
fern = "0.5.7"
4 changes: 2 additions & 2 deletions src/natives.rs
Expand Up @@ -3,8 +3,8 @@ use samp::native;
use samp::error::AmxResult;

impl super::{{crate_name}} {
#[native(name = "foo")]
pub fn foo(&mut self,amx: &Amx) -> AmxResult<bool> {
#[native(name = "Foo")]
pub fn foo(&mut self,_amx: &Amx) -> AmxResult<bool> {
Ok(true)
}
}
2 changes: 1 addition & 1 deletion src/plugin.rs
Expand Up @@ -2,7 +2,7 @@
use log::info;
use samp::plugin::SampPlugin;

#[allow(non_camel_case types)]
#[allow(non_camel_case_types)]
pub struct {{crate_name}};

impl SampPlugin for {{crate_name}} {
Expand Down

0 comments on commit e4cb6af

Please sign in to comment.